mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Add safeguard for PlayerTickEvent being called with other player classes
This commit is contained in:
1 parent
071a9e31a0
commit
3fb1fc3972
1 file changed
+1
-1
@@ -27,7 +27,7 @@ public class BlockConcrete extends BlockCarvable {
|
||||
@SubscribeEvent
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void speedupPlayer(PlayerTickEvent event) {
|
||||
if (event.phase == Phase.START && event.side.isClient() && event.player.onGround) {
|
||||
if (event.phase == Phase.START && event.side.isClient() && event.player.onGround && event.player instanceof EntityPlayerSP) {
|
||||
if (manualInputCheck == null) {
|
||||
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user