mirror of
https://github.com/GTNewHorizons/BetterBuildersWands.git
synced 2026-11-25 06:24:30 +00:00
Fix copyBlock.
This commit is contained in:
1 parent
9b2a7093e6
commit
e289ff419e
1 file changed
+4
-3
@@ -43,9 +43,10 @@ public class BasicWorldShim implements IWorldShim {
|
||||
public boolean copyBlock(Point3d originalBlock, Point3d blockPos) {
|
||||
Block block = world.getBlock(originalBlock.x, originalBlock.y, originalBlock.z);
|
||||
int meta = world.getBlockMetadata(originalBlock.x, originalBlock.y, originalBlock.z);
|
||||
return world.setBlock(blockPos.x, blockPos.y, blockPos.z, block, meta, 3)
|
||||
// setBlock includes 'smart' rotations blocks have which messes with the wand.
|
||||
&& world.setBlockMetadataWithNotify(blockPos.x, blockPos.y, blockPos.z, meta, 3);
|
||||
boolean retval = world.setBlock(blockPos.x, blockPos.y, blockPos.z, block, meta, 3);
|
||||
// setBlock includes 'smart' rotations blocks have which messes with the wand.
|
||||
world.setBlockMetadataWithNotify(blockPos.x, blockPos.y, blockPos.z, meta, 3);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user