mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-19 07:11:02 +00:00
Merge pull request #943 from simon44556/master
- Update ender eye usage to ignore portal frame clicks
This commit is contained in:
@@ -106,6 +106,10 @@ public abstract class EngineAssignedWorldManager extends EngineAssignedComponent
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.getPlayer().getWorld().equals(getTarget().getWorld().realWorld()) && e.getItem().getType() == Material.ENDER_EYE) {
|
if (e.getPlayer().getWorld().equals(getTarget().getWorld().realWorld()) && e.getItem().getType() == Material.ENDER_EYE) {
|
||||||
|
if (e.getClickedBlock() != null && e.getClickedBlock().getType() == Material.END_PORTAL_FRAME) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
KList<Position2> positions = getEngine().getDimension().getStrongholds(getEngine().getSeedManager().getSpawn());
|
KList<Position2> positions = getEngine().getDimension().getStrongholds(getEngine().getSeedManager().getSpawn());
|
||||||
if (positions.isEmpty()) {
|
if (positions.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user