mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:11:35 +01:00
Fix beehive deployer crash
This commit is contained in:
parent
d89807fad9
commit
0a4aaaf81e
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import static net.minecraftforge.eventbus.api.Event.Result.DENY;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.block.BeehiveBlock;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import com.google.common.collect.Multimap;
|
||||
|
@ -245,7 +246,7 @@ public class DeployerHandler {
|
|||
!(player.isSneaking() && holdingSomething) || (stack.doesSneakBypassUse(world, clickedPos, player));
|
||||
|
||||
// Use on block
|
||||
if (useBlock != DENY && flag1 && clickedState.onUse(world, player, hand, result) == ActionResultType.SUCCESS)
|
||||
if (useBlock != DENY && flag1 && clickedState.getBlock() instanceof BeehiveBlock && clickedState.onUse(world, player, hand, result) == ActionResultType.SUCCESS)
|
||||
return;
|
||||
if (stack.isEmpty())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue