This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Spawn a villager with a spawn egg.2. Teleport away from the chunks you spawned them on.3. Run ./lagg unloadchunks.
What is the expected output? What do you see instead?I expect villagers not to despawn/die/disappear, but they do.
What version of the product are you using?R: ClearLag v2.7.2 for CB 1.7.9-R0.2 Sep 15, 2014
Do you have an error log of what happened?No, there is no error.
Please provide any additional information below.For some reason, this only occurs with villagers spawned from an egg. If I ./spawnmob some villagers in, the ones spawned by command will NOT be despawned upon running, ./lagg unloadchunks. Also, it is only adult villagers affected by this, baby villagers spawned by egg do not despawn.
Chunks are saved before unloading, so if the entities are cleared then they're not being saved correctly
@bob7l: Go
Upon further testing after reading your comment, this problem is isolated to adult villagers spawned by spawn eggs. I talked to some of the Spigot dev crew in IRC, and they said there haven't been any reports/are pretty darn sure there isn't a problem with chunks not saving correctly. They told me the problem was on your end. I ran more tests with other entities, and the only thing that disappears is adult villagers spawned by egg. Horses, armor stands, dropped items, animals, citizens npcs, you name it, they don't despawn on ./lagg unloadchunks. I understand this may be a vague issue but many of my players are used to buying villager spawn eggs from the shop (which cost a hell of a lot of money to be wasted!) and using them for various reasons. Any help you could give me past here would be great!
Thanks!
@CKGAR: Go
I use "chunk.unload(true, true)" to unload the chunk. I do not directly remove the chunk any other way. This is using Bukkit's API to properly handle the chunk unload - not some NMS code i wrote up. If the chunk is not saving entities, that is not on my end. It's a problem with bukkit's chunk.unload method.
I did some further examining inside Spigot's code and noticed this:http://gyazo.com/659a72bb8a93f1d597432179545431dd So as you can see, it IS removing entities, but still saves them. This is the same way Minecraft's internals does the chunk unloading so it shouldn't be a problem.
I also cannot reproduce this problem. I tried many many times by spawning a random set of Villagers both adult and child and wasn't able to remove them by unloading chunks.It's POSSIBLE that you have another plugin removing them upon chunk unloads? Also, i did ALL my testing and research on 1.7.10, not 1.8.
I do not have another plugin that would be removing them, I spent a long time testing this and isolating it to ClearLag. Well the majority of the people using your plugin are probably on/have switched to Spigot 1.8, so there is your problem. If you don't have a stable build of 1.8, I'll just throw this out there. www.spigotmc.info
Ahhh you're using 1.8.. I don't support 1.8 (yet).
But thanks for the bug report. It'll help me update to 1.8.
No problem, I hope it comes out soon, all my other PLs have been updated!
Ok just tested on a 1.8.1 server using Clearlag 2.7.2 and couldn't clear the villagers via chunkunload. None of the commands removed the villagers either.
I tested using the following plugins: - Essentials - IBan (Private) - HawkEye - Clearlag
I also tried to remove them with other commands such as /lagg clear, /lagg killmobs, and /lagg area.
I don't know what to tell you, this is happening, if you want to come on my server and see, haha. Any insight on to which PL could be causing the problem? With 40, it would be quicker to ask you than to spend 2 hours isolating it myself :P http://gyazo.com/60c2e85a369085822a22205c51941193
I have no clue, the only plugin i use on my servers are ones i've made, or worldedit/essentials. I suggest you try it on a test server.
To post a comment, please login or register a new account.