mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 16:06:48 +01:00
Misc Patches
- Fixed Brass funnels with configured amounts inserting partial stacks when target inventory is almost full #2589 - Fixed toolbox not marking a chunk for saving when contents change #2574 - Fixed Contraptions no longer sending disassembly packets and thus dropping players through blocks #2538
This commit is contained in:
parent
676beab44b
commit
4aa44f1a3a
3 changed files with 12 additions and 4 deletions
|
@ -442,12 +442,12 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
|
|||
if (contraption == null)
|
||||
return;
|
||||
|
||||
discard();
|
||||
|
||||
StructureTransform transform = makeStructureTransform();
|
||||
AllPackets.channel.send(PacketDistributor.TRACKING_ENTITY.with(() -> this),
|
||||
new ContraptionDisassemblyPacket(this.getId(), transform));
|
||||
|
||||
discard();
|
||||
|
||||
contraption.addBlocksToWorld(level, transform);
|
||||
contraption.addPassengersToWorld(level, transform, getPassengers());
|
||||
|
||||
|
|
|
@ -80,8 +80,15 @@ public class BeltFunnelInteractionHandler {
|
|||
else
|
||||
continue;
|
||||
|
||||
if (amountToExtract != -1)
|
||||
if (amountToExtract != -1) {
|
||||
toInsert.setCount(amountToExtract);
|
||||
ItemStack remainder = inserting.simulate().insert(toInsert);
|
||||
if (!remainder.isEmpty())
|
||||
if (blocking)
|
||||
return true;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
ItemStack remainder = inserting.insert(toInsert);
|
||||
if (toInsert.equals(remainder, false))
|
||||
|
|
|
@ -147,6 +147,7 @@ public class ToolboxInventory extends ItemStackHandler {
|
|||
if (!settling && !te.getLevel().isClientSide)
|
||||
settle(slot / STACKS_PER_COMPARTMENT);
|
||||
te.sendData();
|
||||
te.setChanged();
|
||||
super.onContentsChanged(slot);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue