Patch E Prep

This commit is contained in:
simibubi 2022-03-12 20:31:12 +01:00
parent 2211632f5c
commit 0b17aab01e
6 changed files with 8 additions and 5 deletions

View File

@ -49,6 +49,7 @@ body:
label: Mod Version
description: The version of the mod you were using when the bug occured
options:
- "0.4.0e"
- "0.4.0d"
- "0.4.0c"
- "0.4.0b"

View File

@ -4,7 +4,7 @@ org.gradle.jvmargs = -Xmx3G
org.gradle.daemon = false
# mod version info
mod_version = 0.4d
mod_version = 0.4e
minecraft_version = 1.18.1
forge_version = 39.1.0

View File

@ -57,7 +57,7 @@ public class Create {
public static final String ID = "create";
public static final String NAME = "Create";
public static final String VERSION = "0.4d";
public static final String VERSION = "0.4e";
public static final Logger LOGGER = LogManager.getLogger();

View File

@ -445,8 +445,6 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
AllPackets.channel.send(PacketDistributor.TRACKING_ENTITY.with(() -> this),
new ContraptionDisassemblyPacket(this.getId(), transform));
discard();
contraption.addBlocksToWorld(level, transform);
contraption.addPassengersToWorld(level, transform, getPassengers());
@ -462,6 +460,8 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
((AbstractContraptionEntity) entity).disassemble();
}
discard();
ejectPassengers();
moveCollidedEntitiesOnDisassembly(transform);
AllSoundEvents.CONTRAPTION_DISASSEMBLE.playOnServer(level, blockPosition());

View File

@ -1129,6 +1129,8 @@ public abstract class Contraption {
if (getSeatMapping().isEmpty())
continue;
Integer seatIndex = getSeatMapping().get(seatedEntity.getUUID());
if (seatIndex == null)
continue;
BlockPos seatPos = getSeats().get(seatIndex);
seatPos = transform.apply(seatPos);
if (!(world.getBlockState(seatPos)

View File

@ -5,7 +5,7 @@ license="MIT"
[[mods]]
modId="create"
version="0.4d"
version="0.4e"
displayName="Create"
#updateJSONURL=""
displayURL="https://www.curseforge.com/minecraft/mc-mods/create"