Skip to content

Commit

Permalink
this sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed Sep 19, 2024
1 parent 9b86c2a commit afb8281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ private static Consumer<? super EntityType<? extends LivingEntity>> attributes(S
return (entityType) -> FabricDefaultAttributeRegistry.register(entityType, builder.get());
}

private static <T extends MobEntity> Consumer<EntityType<T>> spawnRestrictions(SpawnRestriction.Location location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) {
private static <T extends MobEntity> Consumer<EntityType<T>> spawnRestrictions(SpawnLocation location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) {
return (entityType) -> SpawnRestriction.register(entityType, location, heightmapType, predicate);
}

private static <T extends MobEntity> Consumer<EntityType<T>> spawnRestrictions(SpawnRestriction.Location location, SpawnRestriction.SpawnPredicate<T> predicate) {
private static <T extends MobEntity> Consumer<EntityType<T>> spawnRestrictions(SpawnLocation location, SpawnRestriction.SpawnPredicate<T> predicate) {
return spawnRestrictions(location, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, predicate);
}

private static <T extends MobEntity> Consumer<EntityType<T>> spawnRestrictions(SpawnRestriction.SpawnPredicate<T> predicate) {
return spawnRestrictions(SpawnRestriction.Location.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, predicate);
return spawnRestrictions(SpawnLocationTypes.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, predicate);
}

public static void init() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package net.id.paradiselost.items;

import com.chocohead.mm.api.ClassTinkerers;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.id.paradiselost.blocks.ParadiseLostBlocks;
import net.id.paradiselost.entities.ParadiseLostEntityTypes;
import net.id.paradiselost.items.armor.ParadiseLostArmorMaterials;
Expand Down Expand Up @@ -48,10 +47,6 @@ public class ParadiseLostItems {
Begin items
*/

private static FabricItemSettings nightmare() {
return new FabricItemSettings().fireproof();
}

private static Settings resource() {
return new Settings();
}
Expand Down

0 comments on commit afb8281

Please sign in to comment.