Skip to content

Commit

Permalink
Update EventHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Dec 20, 2023
1 parent 925d527 commit e11bac4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ public class EventHandler {

@SubscribeEvent
public static void onPlayerEntityInteractSpecific(PlayerInteractEvent.EntityInteractSpecific event) {
Reference.LOGGER.info("hey");
if (event.getTarget() instanceof ArmorStand armorstand) {
final Player player = event.getEntity();
final Level level = event.getLevel();
if (PoserConfig.COMMON.enableConfigGui.get() && player.isShiftKeyDown()) {
if (event.getHand() == InteractionHand.MAIN_HAND && !level.isClientSide) {
System.out.println("hey2");
ArmorPoser.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new ArmorStandScreenMessage(armorstand.getId()));
}
event.setCanceled(true);
Expand Down

0 comments on commit e11bac4

Please sign in to comment.