Skip to content

Commit

Permalink
Update SSP dependency to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal-Spider committed Sep 15, 2024
1 parent dd8a8aa commit e728d1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions common/src/main/java/it/crystalnest/nightworld/Constants.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package it.crystalnest.nightworld;

import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.ApiStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -18,11 +14,6 @@ public final class Constants {
*/
public static final String MOD_ID = "nightworld";

/**
* {@link ResourceKey} for the dimension.
*/
public static final ResourceKey<Level> NIGHTWORLD = ResourceKey.create(Registries.DIMENSION, new ResourceLocation("server_sided_portals", "nightworld"));

/**
* Mod logger.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class NetherPortalBlockMixin {
*/
@Inject(method = "randomTick", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/block/state/BlockState;isValidSpawn(Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/entity/EntityType;)Z", shift = Shift.BEFORE))
private void onRandomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random, CallbackInfo ci) {
if (CustomPortalChecker.isPortalForDimension(level, pos.above(), Constants.NIGHTWORLD)) {
if (CustomPortalChecker.isPortalForDimension(level, pos.above(), Constants.MOD_ID)) {
if (random.nextInt(0, 100) < 50) {
this.handleSpawnEntity(EntityType.ZOMBIE, level, pos);
} else {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ forge_loader_version_range = [47,)

# Dependencies
cobweb_version = 1.0.0
server_sided_portals_version = 1.0.0
server_sided_portals_version = 1.1.0

# Gradle
org.gradle.jvmargs = -Xmx4G
Expand Down

0 comments on commit e728d1a

Please sign in to comment.