20w21a. Waiting for Fabric dims

This commit is contained in:
samo_lego 2020-05-20 21:20:27 +02:00
parent e1e40fa46f
commit 4c01a1a6ab
2 changed files with 5 additions and 5 deletions

View File

@ -2,9 +2,9 @@
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx1G
# Fabric properties # Fabric properties
minecraft_version=20w20b minecraft_version=20w21a
yarn_mappings=20w20b+build.1 yarn_mappings=20w21a+build.2
loader_version=0.8.3+build.196 loader_version=0.8.4+build.198
#Fabric api #Fabric api
fabric_version=0.10.9+build.346-1.16 fabric_version=0.10.9+build.346-1.16

View File

@ -111,12 +111,12 @@ public class AuthEventHandler {
// Faking portal blocks to be air // Faking portal blocks to be air
BlockUpdateS2CPacket feetPacket = new BlockUpdateS2CPacket(); BlockUpdateS2CPacket feetPacket = new BlockUpdateS2CPacket();
((BlockUpdateS2CPacketAccessor) feetPacket).setState(new BlockState(Blocks.AIR, null)); ((BlockUpdateS2CPacketAccessor) feetPacket).setState(new BlockState(Blocks.AIR, null, null));
((BlockUpdateS2CPacketAccessor) feetPacket).setBlockPos(pos); ((BlockUpdateS2CPacketAccessor) feetPacket).setBlockPos(pos);
player.networkHandler.sendPacket(feetPacket); player.networkHandler.sendPacket(feetPacket);
BlockUpdateS2CPacket headPacket = new BlockUpdateS2CPacket(); BlockUpdateS2CPacket headPacket = new BlockUpdateS2CPacket();
((BlockUpdateS2CPacketAccessor) headPacket).setState(new BlockState(Blocks.AIR, null)); ((BlockUpdateS2CPacketAccessor) headPacket).setState(new BlockState(Blocks.AIR, null, null));
((BlockUpdateS2CPacketAccessor) headPacket).setBlockPos(pos.up()); ((BlockUpdateS2CPacketAccessor) headPacket).setBlockPos(pos.up());
player.networkHandler.sendPacket(headPacket); player.networkHandler.sendPacket(headPacket);