Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public boolean apply(Vector position) throws WorldEditException {
- BaseBlock block = source.getBlock(position);
- Vector orig = position.subtract(from);
- Vector transformed = transform.apply(orig);
- boolean result = destination.setBlock(transformed.add(to), block);
- System.out.print(block + " - original block\n");
- System.out.print(destination.getBlock(transformed.add(to)) + " - block set result\n");
- return result;
- /*
- if (world != null && transform.getRotations() > 0)
- world.rotBlock(transformed.add(to), transform.getRotations());
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement