Skip to content

Commit 8e1ba3e

Browse files
committed
Fix build errors
1 parent ea86a45 commit 8e1ba3e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/net/countercraft/movecraft/combat/features/DurabilityOverride.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private boolean nextToAir(@NotNull Block b) {
4949
public void onEntityExplode(@NotNull EntityExplodeEvent e) {
5050
if (DurabilityOverride == null)
5151
return;
52-
if (e.getEntityType() != EntityType.PRIMED_TNT)
52+
if (e.getEntityType() != EntityType.TNT)
5353
return;
5454

5555
Set<Block> removeList = new HashSet<>();

src/main/java/net/countercraft/movecraft/combat/features/ReImplementTNTTranslocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private Location getCenterLocation(@NotNull Block block) {
5959
private Set<SearchEntry> getTNT(@NotNull Block piston, @Nullable Block pistonHead, @NotNull BlockFace direction) {
6060
Set<SearchEntry> searchResults = new HashSet<>();
6161
for (Entity e : piston.getWorld().getEntities()) {
62-
if (!e.isValid() || e.getType() != EntityType.PRIMED_TNT)
62+
if (!e.isValid() || e.getType() != EntityType.TNT)
6363
continue;
6464

6565
TNTPrimed tnt = (TNTPrimed) e;

src/main/java/net/countercraft/movecraft/combat/features/tracers/TNTTracers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void run() {
146146
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
147147
public void entityExplodeEvent(@NotNull EntityExplodeEvent e) {
148148
Entity tnt = e.getEntity();
149-
if (e.getEntityType() != EntityType.PRIMED_TNT)
149+
if (e.getEntityType() != EntityType.TNT)
150150
return;
151151
if (TracerRateTicks == 0)
152152
return;

src/main/java/net/countercraft/movecraft/combat/features/tracking/TNTTracking.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private Vector getTNTVector() {
8585
public void onEntitySpawn(@NotNull EntitySpawnEvent e) {
8686
if (!DamageTracking.EnableTNTTracking)
8787
return;
88-
if (!e.getEntityType().equals(EntityType.PRIMED_TNT))
88+
if (!e.getEntityType().equals(EntityType.TNT))
8989
return;
9090
TNTPrimed tnt = (TNTPrimed) e.getEntity();
9191

0 commit comments

Comments
 (0)