Jump to content

[1.7.2] [SOLVED] OnBlockAcivated does not work when releasing mod


Recommended Posts

Posted

Hi,

i have a mod creating a custom dimension. My Portal Block shall be activated (teleport) the player when it is right-clicked. Therefore I´m using the OnBlockActivated method. But here lies my problem.

 

When i open my mod in the client on my eclipse development environment then the mod loads and works fine. But when i build it and try to run it on the normal client it crashes before loading the "Mojang" logo.

 

Here is my portal block class:

http://pastebin.com/H0G9YUHV

 

And my main class:

http://pastebin.com/DVLu69h4

 

The client crashes with the following error:

http://pastebin.com/0K2NT2qH

(I can´t figure any sense from the log this time and Forge log does not even say anything about it.)

 

I cant figure out why it is crashing on the normal client but not in the dev client. Both client and eclipse have Forge (1.7.2) #1040 installed. Can you tell me why plz?

Posted

@Chillbill It has 2GB. I´m sure that´s not the case

 

@diesieben07

The failure seems to be somewhere in the onBlockActivated method in BlockPortalMinefields above.

May you have a look at the class and tell me what could be wrong? I can´t see any problem of the ones you listed.

Also it works fine when i comment this method out. It´s working too if i declare the method @SideOnly(Side.Server) but then crashes with a server tick loop error when loading a world.

Posted

Found my failure in my custom teleporter class. I will use the vanilla one while i look for the specific line in the code causing it. It was just a quick copy of the Teleporter.java anyway.

 

Thank you.

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.