mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
Do not spawn fire for visual lightning (#11845)
This commit is contained in:
parent
0629524cb2
commit
e0abc5f85d
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@
|
|||
List<Entity> entities = this.level()
|
||||
.getEntities(
|
||||
this,
|
||||
@@ -172,22 +_,30 @@
|
||||
@@ -168,26 +_,34 @@
|
||||
}
|
||||
|
||||
private void spawnFire(int extraIgnitions) {
|
||||
- if (!this.visualOnly && this.level() instanceof ServerLevel serverLevel && serverLevel.getGameRules().getBoolean(GameRules.RULE_DOFIRETICK)) {
|
||||
+ if (!this.visualOnly && !this.isEffect && this.level() instanceof ServerLevel serverLevel && serverLevel.getGameRules().getBoolean(GameRules.RULE_DOFIRETICK)) { // Paper - prevent any fire if only effect
|
||||
BlockPos blockPos = this.blockPosition();
|
||||
BlockState state = BaseFireBlock.getState(this.level(), blockPos);
|
||||
if (this.level().getBlockState(blockPos).isAir() && state.canSurvive(this.level(), blockPos)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue