Skip to content

Commit

Permalink
fix: 🐛Prevent [Chester] to travel any dimension
Browse files Browse the repository at this point in the history
Fix #302
  • Loading branch information
Krutoy242 committed Feb 28, 2024
1 parent 4945eb1 commit 212f1b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/mods/thaumadditions_chester.zs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#modloaded
#reloadable

// Prevent Thaumic Additions Chester dupe from portals
events.onEntityTravelToDimension(function (e as crafttweaker.event.EntityTravelToDimensionEvent) {
if (
e.entity.world.remote
|| isNull(e.entity.definition)
|| e.entity.definition.id != 'thaumadditions:chester'
) return;

e.cancel();
});

0 comments on commit 212f1b4

Please sign in to comment.