Skip to content

Commit 68e2d01

Browse files
committed
Use caching blockdata creation on Paper 26.1
1 parent f91e0f5 commit 68e2d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worldedit-bukkit/adapters/adapter-26.1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/v26_1/PaperweightWorldNativeAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void updateNeighbors(BlockPos pos, net.minecraft.world.level.block.state.
170170
oldState.updateIndirectNeighbourShapes(world, pos, NOTIFY, recursionLimit);
171171
if (sideEffectSet.shouldApply(SideEffect.EVENTS)) {
172172
CraftWorld craftWorld = world.getWorld();
173-
BlockPhysicsEvent event = new BlockPhysicsEvent(craftWorld.getBlockAt(pos.getX(), pos.getY(), pos.getZ()), CraftBlockData.createData(newState));
173+
BlockPhysicsEvent event = new BlockPhysicsEvent(craftWorld.getBlockAt(pos.getX(), pos.getY(), pos.getZ()), newState.asBlockData());
174174
world.getCraftServer().getPluginManager().callEvent(event);
175175
if (event.isCancelled()) {
176176
return;

0 commit comments

Comments
 (0)