forked from sorceress/EasyAuth
20w21a. Waiting for Fabric dims
This commit is contained in:
parent
e1e40fa46f
commit
4c01a1a6ab
|
@ -2,9 +2,9 @@
|
|||
org.gradle.jvmargs=-Xmx1G
|
||||
|
||||
# Fabric properties
|
||||
minecraft_version=20w20b
|
||||
yarn_mappings=20w20b+build.1
|
||||
loader_version=0.8.3+build.196
|
||||
minecraft_version=20w21a
|
||||
yarn_mappings=20w21a+build.2
|
||||
loader_version=0.8.4+build.198
|
||||
|
||||
#Fabric api
|
||||
fabric_version=0.10.9+build.346-1.16
|
||||
|
|
|
@ -111,12 +111,12 @@ public class AuthEventHandler {
|
|||
|
||||
// Faking portal blocks to be air
|
||||
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);
|
||||
player.networkHandler.sendPacket(feetPacket);
|
||||
|
||||
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());
|
||||
player.networkHandler.sendPacket(headPacket);
|
||||
|
||||
|
|
Loading…
Reference in New Issue