tangled
alpha
login
or
join now
codexarchonic.nekoweb.org
/
ProjectInfinity
0
fork
atom
Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
0
fork
atom
overview
issues
6
pulls
pipelines
oops
Lera
1 month ago
cb6ae6c9
665c90c6
+2
-2
1 changed file
expand all
collapse all
unified
split
src
main
java
net
lerariemann
infinity
entity
custom
ChaosCreeper.java
+2
-2
src/main/java/net/lerariemann/infinity/entity/custom/ChaosCreeper.java
reviewed
···
42
42
import net.minecraft.world.item.ItemUtils;
43
43
import net.minecraft.world.level.Level;
44
44
import net.minecraft.world.level.ServerLevelAccessor;
45
45
-
import org.jetbrains.annotations.Nullable;
45
45
+
import org.jspecify.annotations.Nullable;
46
46
47
47
public class ChaosCreeper extends Creeper implements TintableEntity {
48
48
public static EntityDataAccessor<Integer> color = SynchedEntityData.defineId(ChaosCreeper.class, EntityDataSerializers.INT);
···
228
228
super.dropCustomDeathLoot(source, looting, recentlyHit);
229
229
if (source.getEntity() instanceof AbstractSkeleton && getServer() != null) {
230
230
*///?}
231
231
-
ItemStack stack = DiscItem.getRandom(getServer());
231
231
+
ItemStack stack = DiscItem.getRandom(world.getServer());
232
232
this.spawnAtLocation(
233
233
//? if >1.21.2
234
234
(ServerLevel) level(),