forked from gnembon/carpetmod
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ported rule
undeadDontBurnInSunlight
- Loading branch information
1 parent
4108cbd
commit c9fb56d
Showing
4 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
patches/net/minecraft/entity/monster/AbstractSkeleton.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- a/net/minecraft/entity/monster/AbstractSkeleton.java | ||
+++ b/net/minecraft/entity/monster/AbstractSkeleton.java | ||
@@ -3,6 +3,8 @@ | ||
import java.time.LocalDate; | ||
import java.time.temporal.ChronoField; | ||
import javax.annotation.Nullable; | ||
+ | ||
+import carpet.settings.CarpetSettings; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.entity.CreatureAttribute; | ||
import net.minecraft.entity.EntityCreature; | ||
@@ -131,6 +133,12 @@ | ||
flag = false; | ||
} | ||
|
||
+ // TISCM undeadDontBurnInSunlight | ||
+ if (CarpetSettings.undeadDontBurnInSunlight) | ||
+ { | ||
+ flag = false; | ||
+ } | ||
+ | ||
if (flag) | ||
{ | ||
this.setFire(8); |
25 changes: 25 additions & 0 deletions
25
patches/net/minecraft/entity/monster/EntityPhantom.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- a/net/minecraft/entity/monster/EntityPhantom.java | ||
+++ b/net/minecraft/entity/monster/EntityPhantom.java | ||
@@ -2,6 +2,8 @@ | ||
|
||
import java.util.List; | ||
import javax.annotation.Nullable; | ||
+ | ||
+import carpet.settings.CarpetSettings; | ||
import net.minecraft.entity.CreatureAttribute; | ||
import net.minecraft.entity.EntityBodyHelper; | ||
import net.minecraft.entity.EntityFlying; | ||
@@ -152,7 +154,12 @@ | ||
{ | ||
if (this.isInDaylight()) | ||
{ | ||
- this.setFire(8); | ||
+ // TISCM undeadDontBurnInSunlight wrapped setFire call | ||
+// this.setFire(8); | ||
+ if (CarpetSettings.undeadDontBurnInSunlight) | ||
+ { | ||
+ this.setFire(8); | ||
+ } | ||
} | ||
|
||
super.livingTick(); |
18 changes: 16 additions & 2 deletions
18
patches/net/minecraft/entity/monster/EntityZombie.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters