Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. if (mat == Material.STONE_BUTTON) {
  2. byte data = block.getData();
  3. Button btn = new Button(mat, data);
  4. BlockFace face = btn.getAttachedFace();
  5. if (face == null) return;
  6. block = block.getRelative(face, 2);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement