Skip to content

Commit

Permalink
Spell the misspelled part
Browse files Browse the repository at this point in the history
  • Loading branch information
tal5 committed Jun 24, 2024
1 parent d12030d commit 03e8daa
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static void registerMainEvents() {
ScriptEvent.registerScriptEvent(EntityEntersPortalScriptEvent.class);
ScriptEvent.registerScriptEvent(NMSHandler.entityHelper.getEntersVehicleEventImpl());
ScriptEvent.registerScriptEvent(EntityExitsPortalScriptEvent.class);
ScriptEvent.registerScriptEvent(NMSHandler.entityHelper.getExistsVehicleEventImpl());
ScriptEvent.registerScriptEvent(NMSHandler.entityHelper.getExitsVehicleEventImpl());
ScriptEvent.registerScriptEvent(EntityExplodesScriptEvent.class);
ScriptEvent.registerScriptEvent(EntityExplosionPrimesScriptEvent.class);
ScriptEvent.registerScriptEvent(EntityFoodLevelChangeScriptEvent.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,14 +489,14 @@ public Class<? extends EntityEntersVehicleScriptEvent> getEntersVehicleEventImpl
return EntityEntersVehicleScriptEventImpl.class;
}

public static class EntityExistsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
public static class EntityExitsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
@EventHandler
public void onEntityMount(EntityDismountEvent event) {
fire(event, event.getDismounted());
}
}

public Class<? extends EntityExitsVehicleScriptEvent> getExistsVehicleEventImpl() { // TODO: once 1.20 is the minimum supported version, implement in the ScriptEvent class as usual
return EntityExistsVehicleScriptEventImpl.class;
public Class<? extends EntityExitsVehicleScriptEvent> getExitsVehicleEventImpl() { // TODO: once 1.20 is the minimum supported version, implement in the ScriptEvent class as usual
return EntityExitsVehicleScriptEventImpl.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -718,14 +718,14 @@ public Class<? extends EntityEntersVehicleScriptEvent> getEntersVehicleEventImpl
return EntityEntersVehicleScriptEventImpl.class;
}

public static class EntityExistsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
public static class EntityExitsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
@EventHandler
public void onEntityMount(EntityDismountEvent event) {
fire(event, event.getDismounted());
}
}

public Class<? extends EntityExitsVehicleScriptEvent> getExistsVehicleEventImpl() {
return EntityExistsVehicleScriptEventImpl.class;
public Class<? extends EntityExitsVehicleScriptEvent> getExitsVehicleEventImpl() {
return EntityExitsVehicleScriptEventImpl.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -795,14 +795,14 @@ public Class<? extends EntityEntersVehicleScriptEvent> getEntersVehicleEventImpl
return EntityEntersVehicleScriptEventImpl.class;
}

public static class EntityExistsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
public static class EntityExitsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
@EventHandler
public void onEntityMount(EntityDismountEvent event) {
fire(event, event.getDismounted());
}
}

public Class<? extends EntityExitsVehicleScriptEvent> getExistsVehicleEventImpl() {
return EntityExistsVehicleScriptEventImpl.class;
public Class<? extends EntityExitsVehicleScriptEvent> getExitsVehicleEventImpl() {
return EntityExitsVehicleScriptEventImpl.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -848,14 +848,14 @@ public Class<? extends EntityEntersVehicleScriptEvent> getEntersVehicleEventImpl
return EntityEntersVehicleScriptEventImpl.class;
}

public static class EntityExistsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
public static class EntityExitsVehicleScriptEventImpl extends EntityExitsVehicleScriptEvent {
@EventHandler
public void onEntityMount(EntityDismountEvent event) {
fire(event, event.getDismounted());
}
}

public Class<? extends EntityExitsVehicleScriptEvent> getExistsVehicleEventImpl() {
return EntityExistsVehicleScriptEventImpl.class;
public Class<? extends EntityExitsVehicleScriptEvent> getExitsVehicleEventImpl() {
return EntityExitsVehicleScriptEventImpl.class;
}
}

0 comments on commit 03e8daa

Please sign in to comment.