Advertisement
Guest User

Untitled

a guest
Aug 27th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. ItemStack itemstack = player.getHeldItem(hand);
  2. FluidStack fluidStack = getFluid(itemstack);
  3. // empty bucket shouldn't exist, do nothing since it should be handled by the bucket event
  4. if (fluidStack == null)
  5. {
  6.     return ActionResult.newResult(EnumActionResult.PASS, itemstack);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement