Jump to content

[1.6.2] Fire doesn't extinguish correctly


sep87x

Recommended Posts

Because you have to send it (very bottom of the tutorial page) --

makePacket()

just creates the packet and nothing more. When I remove the queue stuff, it doesn't do anything at all.

 

Also, the side variable in OutgoingWormholePacket.execute is being set to SERVER, but it's still executing on the client, which is definitely very strange...

I like to make mods, just like you. Here's one worth checking out

Link to comment
Share on other sites

Try looking at my discontinued mod's packets, MinePG.

 

link: https://github.com/ModderPenguin/MinePG/tree/master/source/minepg/rpg_common/rpg/network/packet

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

Try using an update flag when setting fire block to air:

worldObj.setBlock(x, y, z, 0, 0, 0x02);

0x02 automatically sends update to the server, thus you won't have to mess with packets.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

G'morning.

 

Try using an update flag when setting fire block to air:

worldObj.setBlock(x, y, z, 0, 0, 0x02);

0x02 automatically sends update to the server, thus you won't have to mess with packets.

 

I already tried that out. That was my very first thought, but "Flag 2 will send the change to clients" (description). So I thought to set up a tick handler on server side and make him do the setBlock stuff, but didn't work out. I guess I need to do something with packets.

 

€dit: My main issue is that it MUST be possible without sending packets (see client code). I'll be searching for some more useful code until I get back here.

Link to comment
Share on other sites

You haven't wrote that you tried 0x02 flag.

Also, it's usage supposes you're doing it on client, not «set up a tick handler on server side and make him do the setBlock stuff».

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

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.