9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 04:19:27 +00:00
This commit is contained in:
XiaoMoMi
2025-08-25 17:32:31 +08:00
parent 6aa1ef918a
commit d559debb84
2 changed files with 2 additions and 2 deletions

View File

@@ -53,6 +53,6 @@ public class BukkitBlockBehaviors extends BlockBehaviors {
register(STAIRS_BLOCK, StairsBlockBehavior.FACTORY);
register(PRESSURE_PLATE_BLOCK, PressurePlateBlockBehavior.FACTORY);
register(DOUBLE_HIGH_BLOCK, DoubleHighBlockBehavior.FACTORY);
register(CHANGE_OVER_TIME_BLOCK,ChangeOverTimeBlockBehavior.FACTORY);
register(CHANGE_OVER_TIME_BLOCK, ChangeOverTimeBlockBehavior.FACTORY);
}
}

View File

@@ -29,7 +29,7 @@ public class ChangeOverTimeBlockBehavior extends BukkitBlockBehavior {
Optional<Object> nextState = BukkitBlockManager.instance().blockById(this.nextBlock)
.map(CustomBlock::defaultState)
.map(ImmutableBlockState::customBlockState)
.map(BlockStateWrapper::handle);
.map(BlockStateWrapper::literalObject);
if (nextState.isEmpty()) return;
CraftBukkitReflections.method$CraftEventFactory$handleBlockFormEvent.invoke(null, args[1], args[2], nextState.get(), UpdateOption.UPDATE_ALL.flags());
}