mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 01:29:32 +01:00
SPIGOT-5035: Error Using Virtual Merchant GUI
This commit is contained in:
parent
0fc6922bf3
commit
17543ecfd4
1 changed files with 9 additions and 0 deletions
|
@ -34,3 +34,12 @@
|
|||
|
||||
int j;
|
||||
|
||||
@@ -96,7 +112,7 @@
|
||||
}
|
||||
|
||||
private void j() {
|
||||
- if (!this.merchant.getWorld().isClientSide) {
|
||||
+ if (!this.merchant.getWorld().isClientSide && this.merchant instanceof Entity) { // CraftBukkit - SPIGOT-5035
|
||||
Entity entity = (Entity) this.merchant;
|
||||
|
||||
this.merchant.getWorld().a(entity.locX, entity.locY, entity.locZ, this.merchant.eb(), SoundCategory.NEUTRAL, 1.0F, 1.0F, false);
|
||||
|
|
Loading…
Reference in a new issue