mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 01:39:52 +03:00
12 lines
834 B
Diff
12 lines
834 B
Diff
--- ../src-base/minecraft/net/minecraft/item/ItemRedstone.java
|
|
+++ ../src-work/minecraft/net/minecraft/item/ItemRedstone.java
|
|
@@ -25,7 +25,7 @@
|
|
BlockPos blockpos = flag ? pos : pos.offset(facing);
|
|
ItemStack itemstack = player.getHeldItem(hand);
|
|
|
|
- if (player.canPlayerEdit(blockpos, facing, itemstack) && worldIn.mayPlace(worldIn.getBlockState(blockpos).getBlock(), blockpos, false, facing, (Entity)null) && Blocks.REDSTONE_WIRE.canPlaceBlockAt(worldIn, blockpos))
|
|
+ if (!itemstack.isEmpty() && player.canPlayerEdit(blockpos, facing, itemstack) && worldIn.mayPlace(worldIn.getBlockState(blockpos).getBlock(), blockpos, false, facing, player) && Blocks.REDSTONE_WIRE.canPlaceBlockAt(worldIn, blockpos))
|
|
{
|
|
worldIn.setBlockState(blockpos, Blocks.REDSTONE_WIRE.getDefaultState());
|
|
|