mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01: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 (!)
|
// TODO: change api for this / use nodes (!)
|
||||||
final int id = getTypeId(x, y, z);
|
final int id = getTypeId(x, y, z);
|
||||||
final net.minecraft.server.Block block = net.minecraft.server.Block.byId[id];
|
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
|
// minX, minY, minZ, maxX, maxY, maxZ
|
||||||
return new double[]{block.v(), block.x(), block.z(), block.w(), block.y(), block.A()};
|
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 (!)
|
// TODO: change api for this / use nodes (!)
|
||||||
final int id = getTypeId(x, y, z);
|
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];
|
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
|
// minX, minY, minZ, maxX, maxY, maxZ
|
||||||
return new double[]{block.v(), block.x(), block.z(), block.w(), block.y(), block.A()};
|
return new double[]{block.v(), block.x(), block.z(), block.w(), block.y(), block.A()};
|
||||||
|
Loading…
Reference in New Issue
Block a user