mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-11-20 07:08:53 -05:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a7145ae4d |
@@ -343,9 +343,16 @@ class BerryBlockEntity(pos: BlockPos, state: BlockState) : BlockEntity(Cobblemon
|
|||||||
world.setBlock(pos, newState, UPDATE_CLIENTS)
|
world.setBlock(pos, newState, UPDATE_CLIENTS)
|
||||||
world.gameEvent(player, GameEvent.BLOCK_CHANGE, pos)
|
world.gameEvent(player, GameEvent.BLOCK_CHANGE, pos)
|
||||||
resetGrowTimers(pos, newState)
|
resetGrowTimers(pos, newState)
|
||||||
return
|
|
||||||
|
// Notify top block too since we want observers to work there too
|
||||||
|
val abovePos = pos.above()
|
||||||
|
val aboveState = world.getBlockState(abovePos)
|
||||||
|
if (!aboveState.isAir) {
|
||||||
|
world.sendBlockUpdated(abovePos, aboveState, aboveState, Block.UPDATE_CLIENTS)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Using a similar approach to ComputerCraft, implement this client side
|
//Using a similar approach to ComputerCraft, implement this client side
|
||||||
interface RenderState : AutoCloseable {
|
interface RenderState : AutoCloseable {
|
||||||
var needsRebuild: Boolean
|
var needsRebuild: Boolean
|
||||||
|
|||||||
Reference in new issue
Block a user