Jump to content

Recommended Posts

Posted

I use this following code to adjust the metadata for surrounding blocks

 

  Reveal hidden contents

 

 

Now this works 100% while playing SP however while playing on servers the following happens.

 

First the BlockSoulCrucible in the area are affected by the method - works correct.

On server Log out, all BlockSoulCrucible's reset back their old Metadata- not correct.

 

Wondering why the Metadata is not saving or updating/saving upon logout.

Posted

Are you sure you call it only on server-side? Sounds to me you call this only client-side.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Correct, I had it calling from my Gui button action.

 

I now enabled the metadata change method on a Side.SERVER , which works great... however now my Gui does not update with the new Metadata info.

 

If I leave my Gui metadata change in tack and enable the new Side.SERVER method in my tileEntityCustom.class, it works great for servers.... however if you play single player, then the action is done twice T_T.

 

Gained SMP but lost SP =/

 

Any suggestions?

 

This is the code I use for my Gui Display text of Total Soul Count. I use a static variable that is on my BlockSoulAltar.

Which I force an update when the block is activated.

 

  Reveal hidden contents

 

 

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.