Skip to content

Commit

Permalink
Fixed some null pointers, causing portals to not generate
Browse files Browse the repository at this point in the history
Fixes #1
Fixes #3
Fixes #4
  • Loading branch information
Nick1st committed Aug 19, 2022
1 parent 5cdf730 commit d22d9a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
import qouteall.imm_ptl.core.IPGlobal;
import qouteall.imm_ptl.core.McHelper;
import qouteall.imm_ptl.core.ducks.IEEntity;
import qouteall.imm_ptl.core.platform_specific.IPRegistry;
import qouteall.q_misc_util.Helper;
import qouteall.q_misc_util.MiscHelper;

import java.util.Objects;

public class EndPortalEntity extends Portal {
public static EntityType<EndPortalEntity> entityType;
public static EntityType<EndPortalEntity> entityType = IPRegistry.END_PORTAL.get();

// only used by scaled view type end portal
private EndPortalEntity clientFakedReversePortal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

public class GeneralBreakablePortal extends BreakablePortalEntity {

public static EntityType<GeneralBreakablePortal> entityType;
public static EntityType<GeneralBreakablePortal> entityType = IPRegistry.GENERAL_BREAKABLE_PORTAL.get();

public GeneralBreakablePortal(
EntityType<?> entityType_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Random;

public class NetherPortalEntity extends BreakablePortalEntity {
public static EntityType<NetherPortalEntity> entityType;
public static EntityType<NetherPortalEntity> entityType = IPRegistry.NETHER_PORTAL_NEW.get();

public NetherPortalEntity(
EntityType<?> entityType_1,
Expand Down

0 comments on commit d22d9a5

Please sign in to comment.