Fix robot being unable to place buckets.

Probably also fixes a lot of similar issues.
This commit is contained in:
Vexatos 2017-05-14 14:54:54 +02:00
parent e596e61783
commit b8db395bbb

View File

@ -477,7 +477,7 @@ class Player(val agent: internal.Agent) extends FakePlayer(agent.world.asInstanc
if (didPlace == EnumActionResult.SUCCESS) {
MinecraftForge.EVENT_BUS.post(new RobotPlaceBlockEvent.Post(agent, stack, world, pos))
}
didPlace != EnumActionResult.FAIL
didPlace == EnumActionResult.SUCCESS
}
}
}