Jump to content

[1.10.2 - 1249] Npe while trying to teleport player


Dragonisser

Recommended Posts

Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block.

 

Error: http://pastebin.com/TG24XnP7

 

BlockPortal: http://pastebin.com/BV9dZDhx

 

Teleporter: http://pastebin.com/rGXXsfZG

 

I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world.

Link to comment
Share on other sites

Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block.

 

Error: http://pastebin.com/TG24XnP7

 

BlockPortal: http://pastebin.com/BV9dZDhx

 

Teleporter: http://pastebin.com/rGXXsfZG

 

I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world.

Your Collision bounding box is null. It can not be null or entities can not collide with it.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block.

 

Error: http://pastebin.com/TG24XnP7

 

BlockPortal: http://pastebin.com/BV9dZDhx

 

Teleporter: http://pastebin.com/rGXXsfZG

 

I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world.

Your Collision bounding box is null. It can not be null or entities can not collide with it.

 

Well its the code of the original Portalblock.

 

public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos)
    {
        switch ((EnumFacing.Axis)state.getValue(AXIS))
        {
            case X:
                return X_AABB;
            case Y:
            default:
                return Y_AABB;
            case Z:
                return Z_AABB;
        }
    }

 

@Nullable
    public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, World worldIn, BlockPos pos)
    {
        return NULL_AABB;
    }

 

http://pastebin.com/gTGsCgqk

 

 

oh and btw. that's fixed so far, but i cant go back into the overworld dimension, crashing with the same error.

Link to comment
Share on other sites

If you're extending a class, don't copy-paste that class into your new one.  Let the parent class handle all the stuff that's exactly the same.  That's the beauty of OOP.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.