Permalink
Browse files

Remove deprecated and broken "block" key in entity_enter_portal event

  • Loading branch information...
PseudoKnight committed Aug 28, 2018
1 parent aa81d3a commit 568e8cd102af13f39e4c449b51f8d2954df4dcdf
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/com/laytonsmith/core/events/drivers/EntityEvents.java
@@ -1488,7 +1488,7 @@ public String docs() {
+ " world: <macro> the world in which the portal was entered }"
+ " Fires when an entity touches a portal block."
+ " {id: the entityID of the entity | location: the location of the block touched | type"
+ " | block (deprecated) | portaltype }"
+ " | portaltype }"
+ " {}"
+ " {}";
}
@@ -1526,7 +1526,6 @@ public BindableEvent convert(CArray manualObject, Target t) {
ret.put("type", new CString(event.getEntity().getType().name(), t));
ret.put("location", ObjectGenerator.GetGenerator().location(event.getLocation(), false));
ret.put("portaltype", new CString(mat.getName(), t));
ret.put("block", new CInt(mat.getName(), t));
return ret;
} else {
throw new EventException("Could not convert to MCPortalEnterEvent");

0 comments on commit 568e8cd

Please sign in to comment.