mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-01 10:09:33 +02:00
IBlockAccess has meaning.
This commit is contained in:
parent
ff94745999
commit
898a9a5212
|
@ -49,7 +49,7 @@ public class BlockCacheCB2511 extends BlockCache implements IBlockAccess{
|
|||
// TODO: change api for this / use nodes (!)
|
||||
final int id = getTypeId(x, y, z);
|
||||
final net.minecraft.server.Block block = net.minecraft.server.Block.byId[id];
|
||||
block.updateShape(world, x, y, z); // TODO: use THIS instead of world.
|
||||
block.updateShape(this, x, y, z); // TODO: use THIS instead of world.
|
||||
|
||||
// minX, minY, minZ, maxX, maxY, maxZ
|
||||
return new double[]{block.v(), block.x(), block.z(), block.w(), block.y(), block.A()};
|
||||
|
|
|
@ -49,7 +49,7 @@ public class BlockCacheCB2512 extends BlockCache implements IBlockAccess{ // TOD
|
|||
// TODO: change api for this / use nodes (!)
|
||||
final int id = getTypeId(x, y, z);
|
||||
final net.minecraft.server.v1_4_5.Block block = net.minecraft.server.v1_4_5.Block.byId[id];
|
||||
block.updateShape(world, x, y, z); // TODO: use THIS instead of world.
|
||||
block.updateShape(this, x, y, z); // TODO: use THIS instead of world.
|
||||
|
||||
// minX, minY, minZ, maxX, maxY, maxZ
|
||||
return new double[]{block.v(), block.x(), block.z(), block.w(), block.y(), block.A()};
|
||||
|
|
Loading…
Reference in New Issue
Block a user