Skip to content

Commit ea69b0a

Browse files
authored
Merge pull request #225 from TheNextLvl-net/fix-folia-entity-access
Fixed entity access in end platform generation on Folia
2 parents cb0aef0 + 2ad5b42 commit ea69b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/thenextlvl/worlds/listener/PortalListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void onEntityPortalEnter(EntityPortalEnterEvent event) {
7878

7979
private void generateEndPlatform(World world, Entity entity) {
8080
var handle = ((CraftWorld) world).getHandle();
81-
var entityHandle = ((CraftEntity) entity).getHandle();
81+
var entityHandle = WorldsPlugin.RUNNING_FOLIA ? null : ((CraftEntity) entity).getHandle();
8282
EndPlatformFeature.createEndPlatform(handle, new BlockPos(100, 49, 0), true, entityHandle);
8383
}
8484
}

0 commit comments

Comments
 (0)