fix cleric impetuses not updating, add motion not affecting players, brainsweeping not affecting witches
This commit is contained in:
parent
8c061bdd3c
commit
fb62300f42
2 changed files with 4 additions and 4 deletions
|
@ -45,11 +45,10 @@ public class BlockStoredPlayerImpetus extends BlockAbstractImpetus {
|
|||
if (entity instanceof Player) {
|
||||
// phew, we got something
|
||||
tile.setPlayer(entity.getUUID());
|
||||
tile.setChanged();
|
||||
level.sendBlockUpdated(pPos, pState, pState, Block.UPDATE_CLIENTS);
|
||||
|
||||
pLevel.playSound(pPlayer, pPos, HexSounds.IMPETUS_STOREDPLAYER_DING,
|
||||
SoundSource.BLOCKS,
|
||||
1f, 1f);
|
||||
pLevel.playSound(null, pPos, HexSounds.IMPETUS_STOREDPLAYER_DING, SoundSource.BLOCKS,
|
||||
1f, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ object OpAddMotion : SpellOperator {
|
|||
private data class Spell(val target: Entity, val motion: Vec3) : RenderedSpell {
|
||||
override fun cast(ctx: CastingContext) {
|
||||
target.push(motion.x, motion.y, motion.z)
|
||||
target.hurtMarked = true // Whyyyyy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue