mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Fixed #630 (null player was used)
This commit is contained in:
parent
1a63fc7638
commit
03354ed1cb
@ -119,9 +119,9 @@ public class InventoryListener implements Listener{
|
|||||||
ItemStack result = inventory.getResult();
|
ItemStack result = inventory.getResult();
|
||||||
|
|
||||||
if (plugin.furnaceIsTracked(furnaceBlock) && result != null && ItemChecks.isSmelted(result)) {
|
if (plugin.furnaceIsTracked(furnaceBlock) && result != null && ItemChecks.isSmelted(result)) {
|
||||||
McMMOPlayer mcMMOPlayer = Users.getPlayer(plugin.getFurnacePlayer(furnaceBlock));
|
McMMOPlayer mcMMOPlayer = Users.getPlayer(event.getPlayer());
|
||||||
|
|
||||||
if (event.getPlayer().equals(mcMMOPlayer.getPlayer())) {
|
if (mcMMOPlayer.getPlayer().equals(plugin.getFurnacePlayer(furnaceBlock))) {
|
||||||
SmeltingManager smeltingManager = new SmeltingManager(mcMMOPlayer);
|
SmeltingManager smeltingManager = new SmeltingManager(mcMMOPlayer);
|
||||||
smeltingManager.vanillaXPBoost(event);
|
smeltingManager.vanillaXPBoost(event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user