fixes
This commit is contained in:
1 parent
1fce23560a
commit
cba23ff310
2 files changed
+2
-12
No files matched your search
@@ -327,17 +327,7 @@ public class RedstoneWireTurbo
|
|||||||
// be replicated here.
|
// be replicated here.
|
||||||
if (!oldState.canPlaceAt(worldIn, pos)) {
|
if (!oldState.canPlaceAt(worldIn, pos)) {
|
||||||
// Pop off the redstone dust
|
// Pop off the redstone dust
|
||||||
// aurieh: there must be a better way to do this
|
Block.dropStacks(oldState, worldIn, pos);
|
||||||
LootContext.Builder ctx = new LootContext
|
|
||||||
.Builder(worldIn.getServer().getWorld(worldIn.dimension.getType()))
|
|
||||||
.put(LootContextParameters.POSITION, pos)
|
|
||||||
.put(LootContextParameters.TOOL, ItemStack.EMPTY);
|
|
||||||
List<ItemStack> stacks = oldState.getDroppedStacks(ctx);
|
|
||||||
for (ItemStack stack : stacks) {
|
|
||||||
ItemEntity itemEntity = new ItemEntity(worldIn, pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5);
|
|
||||||
worldIn.spawnEntity(itemEntity);
|
|
||||||
}
|
|
||||||
worldIn.clearBlockState(pos, false);
|
|
||||||
|
|
||||||
// Mark this position as not being redstone wire
|
// Mark this position as not being redstone wire
|
||||||
upd1.type = UpdateNode.Type.OTHER;
|
upd1.type = UpdateNode.Type.OTHER;
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public abstract class RedstoneWireBlockMixin implements RedstoneWireBlockInterfa
|
|||||||
public BlockState fastUpdate(World world, BlockPos pos, BlockState state, BlockPos source) {
|
public BlockState fastUpdate(World world, BlockPos pos, BlockState state, BlockPos source) {
|
||||||
// [CM] fastRedstoneDust -- update based on carpet rule
|
// [CM] fastRedstoneDust -- update based on carpet rule
|
||||||
if (CarpetSettings.fastRedstoneDust) {
|
if (CarpetSettings.fastRedstoneDust) {
|
||||||
wireTurbo.updateSurroundingRedstone(world, pos, state, source);
|
return wireTurbo.updateSurroundingRedstone(world, pos, state, source);
|
||||||
}
|
}
|
||||||
return update(world, pos, state);
|
return update(world, pos, state);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user