mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 15:56:14 +00:00
Merge 1.14
This commit is contained in:
commit
f91dd3873f
110 files changed
+1981
-1939
No files matched your search
@@ -115,10 +115,13 @@ public class BlockPistonRelay extends BlockMod implements IWandable {
|
||||
|
||||
@Override
|
||||
public boolean onUsedByWand(PlayerEntity player, ItemStack stack, World world, BlockPos pos, Direction side) {
|
||||
if(player == null || world.isRemote)
|
||||
if(world.isRemote)
|
||||
return false;
|
||||
|
||||
if(!player.isSneaking()) {
|
||||
if(player == null || player.isSneaking()) {
|
||||
spawnAsEntity(world, pos, new ItemStack(this));
|
||||
world.destroyBlock(pos, false);
|
||||
} else {
|
||||
GlobalPos clicked = GlobalPos.of(world.getDimension().getType(), pos.toImmutable());
|
||||
if(ItemTwigWand.getBindMode(stack)) {
|
||||
activeBindingAttempts.put(player.getUniqueID(), clicked);
|
||||
@@ -132,9 +135,6 @@ public class BlockPistonRelay extends BlockMod implements IWandable {
|
||||
dest.getX(), dest.getY(), dest.getZ()));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
spawnAsEntity(world, pos, new ItemStack(this));
|
||||
world.destroyBlock(pos, false);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user