Skip to content

Commit

Permalink
Merge pull request #2 from cryleak/master
Browse files Browse the repository at this point in the history
fix wither essence aura i think
  • Loading branch information
soshimee authored Oct 29, 2024
2 parents 8cea717 + 5705017 commit 04f00cc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public void onTick(TickEvent.ClientTickEvent event) {
GameProfile profile = ((TileEntitySkull) tileEntity).getPlayerProfile();
if (profile == null) continue;
String profileId = profile.getId().toString();
if (!Objects.equals(profileId, "26bb1a8d-7c66-31c6-82d5-a9c04c94fb02")) {
if (!Objects.equals(profileId, "edb0155f-379c-395a-9c7d-1b6005987ac8")) continue;
if (!Objects.equals(profileId, "e0f3e929-869e-3dca-9504-54c666ee6f23")) {
if (!Objects.equals(profileId, "fed95410-aba1-39df-9b95-1d4f361eb66e")) continue;
else if (world.getBlockState(position.down()).getBlock() == Blocks.redstone_block || world.getBlockState(position.north()).getBlock() == Blocks.redstone_block || world.getBlockState(position.south()).getBlock() == Blocks.redstone_block || world.getBlockState(position.west()).getBlock() == Blocks.redstone_block || world.getBlockState(position.east()).getBlock() == Blocks.redstone_block) {
redstoneKey = false;
blocksDone.add(position);
Expand Down Expand Up @@ -191,7 +191,7 @@ public void onPacketReceive(ReceivePacketEvent event) {
GameProfile profile = ((TileEntitySkull) tileEntity).getPlayerProfile();
if (profile == null) return;
String profileId = profile.getId().toString();
if (profileId.equals("edb0155f-379c-395a-9c7d-1b6005987ac8")) {
if (profileId.equals("fed95410-aba1-39df-9b95-1d4f361eb66e")) {
redstoneKey = true;
}
} else if (blockState.getBlock() == Blocks.redstone_block) {
Expand All @@ -213,7 +213,7 @@ public void onPacketReceive(ReceivePacketEvent event) {
GameProfile profile = ((TileEntitySkull) tileEntity).getPlayerProfile();
if (profile == null) return;
String profileId = profile.getId().toString();
if (profileId.equals("edb0155f-379c-395a-9c7d-1b6005987ac8")) {
if (profileId.equals("fed95410-aba1-39df-9b95-1d4f361eb66e")) {
redstoneKey = true;
}
} else if (blockState.getBlock() == Blocks.redstone_block) {
Expand All @@ -232,7 +232,7 @@ public void onPacketReceive(ReceivePacketEvent event) {
if (itemStack.getItem() != Items.skull) return;
if (!itemStack.hasTagCompound()) return;
String profileId = itemStack.getTagCompound().getCompoundTag("SkullOwner").getString("Id");
if (!profileId.equals("26bb1a8d-7c66-31c6-82d5-a9c04c94fb02")) return;
if (!profileId.equals("e0f3e929-869e-3dca-9504-54c666ee6f23")) return;
blocksDone.add(new BlockPos(entity.posX, entity.posY + 2, entity.posZ));
} else if (event.packet instanceof S02PacketChat) {
S02PacketChat packet = (S02PacketChat) event.packet;
Expand Down

0 comments on commit 04f00cc

Please sign in to comment.