Skip to content

Commit

Permalink
Update to 1.20.2-pre2
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <[email protected]>
  • Loading branch information
shedaniel committed Sep 8, 2023
1 parent 668d873 commit 24083c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ architectury {

subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "io.github.juuxel.loom-quiltflower"
apply plugin: "io.github.juuxel.loom-vineflower"

loom {
silentMojangMappingsLicense()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void construct(ClientPacketListener clientPacketListener, ClientLevel.Cl
}

@Inject(method = "addEntity", at = @At("HEAD"), cancellable = true)
private void addEntity(int i, Entity entity, CallbackInfo ci) {
private void addEntity(Entity entity, CallbackInfo ci) {
if (EntityEvent.ADD.invoker().add(entity, (ClientLevel) (Object) this).isFalse()) {
ci.cancel();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void handleRespawnPre(ClientboundRespawnPacket packet, CallbackInfo ci)
}

@Inject(method = "handleRespawn", at = @At(value = "INVOKE",
target = "Lnet/minecraft/client/multiplayer/ClientLevel;addPlayer(ILnet/minecraft/client/player/AbstractClientPlayer;)V"))
target = "Lnet/minecraft/client/multiplayer/ClientLevel;addEntity(Lnet/minecraft/world/entity/Entity;)V"))
private void handleRespawn(ClientboundRespawnPacket packet, CallbackInfo ci) {
ClientPlayerEvent.CLIENT_PLAYER_RESPAWN.invoker().respawn(tmpPlayer, minecraft.player);
this.tmpPlayer = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static void receive(FriendlyByteBuf buf, NetworkManager.PacketContext con
ext.loadAdditionalSpawnData(buf);
}
buf.release();
Minecraft.getInstance().level.putNonPlayerEntity(id, entity);
Minecraft.getInstance().level.addEntity(entity);
entity.lerpMotion(deltaX, deltaY, deltaZ);
});
}
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ org.gradle.daemon=false

platforms=fabric

minecraft_version=1.20.2-pre1
supported_version=1.20.2-pre1
minecraft_version=1.20.2-pre2
supported_version=1.20.2-pre2

artifact_type=beta

Expand All @@ -14,7 +14,7 @@ base_version=10.0
maven_group=dev.architectury

fabric_loader_version=0.14.22
fabric_api_version=0.88.2+1.20.2
fabric_api_version=0.88.3+1.20.2
mod_menu_version=7.0.0

forge_version=46.0.1
Expand Down

0 comments on commit 24083c1

Please sign in to comment.