补充悬挂物放置
All checks were successful
Java CI-CD with Maven / build (push) Successful in 9m16s

This commit is contained in:
zhangyuheng 2024-07-26 12:00:03 +08:00
parent 26fa5f60a5
commit 46d15d01eb
2 changed files with 1 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.42.3-beta</version>
<version>1.42.4-beta</version>
<packaging>jar</packaging>
<name>Dominion</name>

View File

@ -648,9 +648,6 @@ public class PlayerEvents implements Listener {
@EventHandler(priority = EventPriority.HIGHEST) // place - item frame
public void placeItemFrame(HangingPlaceEvent event) {
Entity entity = event.getEntity();
if (entity.getType() != EntityType.ITEM_FRAME && entity.getType() != EntityType.GLOW_ITEM_FRAME) {
return;
}
Player player = event.getPlayer();
if (player == null) {
return;