Skip to content

Commit

Permalink
Merge pull request #503 from jchung01/vanilla-tweaks
Browse files Browse the repository at this point in the history
Add null world check to creeper confetti
  • Loading branch information
ACGaming authored Jul 2, 2024
2 parents c04a5f7 + 8e2bd5e commit 0925ad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void utRegisterConfetti(CallbackInfo ci)
@Inject(method = "<init>", at = @At(value = "TAIL"))
private void utInitConfetti(World worldIn, CallbackInfo ci)
{
if (this.world.isRemote) return;
if (worldIn == null || worldIn.isRemote) return;
double chargedChance = UTConfigTweaks.ENTITIES.CREEPER_CONFETTI.utCreeperConfettiChance;
if (chargedChance > 0.0D && UTRandomUtil.chance(chargedChance, this.rand))
{
Expand Down

0 comments on commit 0925ad7

Please sign in to comment.