mirror of
https://github.com/SydMontague/ImageMaps.git
synced 2024-11-01 00:09:30 +01:00
Fix error when interacting with entities in <1.17 versions
This commit is contained in:
parent
b1216b016f
commit
67ed74b006
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.craftcitizen</groupId>
|
||||
<artifactId>imagemaps</artifactId>
|
||||
<version>1.0.9</version>
|
||||
<version>1.0.10</version>
|
||||
<name>ImageMaps</name>
|
||||
<description>Render Images onto maps!</description>
|
||||
|
||||
|
@ -102,7 +102,8 @@ public class ImageMaps extends JavaPlugin implements Listener {
|
||||
if (!isInvisibilitySupported())
|
||||
return;
|
||||
|
||||
if (event.getRightClicked().getType() != EntityType.ITEM_FRAME && event.getRightClicked().getType() != EntityType.GLOW_ITEM_FRAME)
|
||||
if (event.getRightClicked().getType() != EntityType.ITEM_FRAME &&
|
||||
(!isGlowingSupported() || event.getRightClicked().getType() != EntityType.GLOW_ITEM_FRAME))
|
||||
return;
|
||||
|
||||
ItemFrame frame = (ItemFrame) event.getRightClicked();
|
||||
|
Loading…
Reference in New Issue
Block a user