This commit is contained in:
Chicken-Bones committed 2014-01-26 19:11:44 +10:00
1 parent 31f1ee1197
commit dfdf1196ba
1 file changed
+1 -1
@@ -18,7 +18,7 @@ object MCPCCompatModule
{
def load() {
try {
val m_canPlacePart = classOf[World].getDeclaredMethod("canPlaceMultipart", classOf[World], classOf[Block], classOf[Int], classOf[Int], classOf[Int])
val m_canPlacePart = classOf[World].getDeclaredMethod("canPlaceMultipart", classOf[Block], classOf[Int], classOf[Int], classOf[Int])
MultipartCompatiblity.canAddPart = (world:World, x:Int, y:Int, z:Int) => {
m_canPlacePart.invoke(world, MultipartProxy.block, x:Integer, y:Integer, z:Integer).asInstanceOf[Boolean].booleanValue()
}