CyberdyneCC / Thermos

(NO LONGER DEVELOPED) Minecraft Forge Server Software implementing the Spigot/Bukkit API, formerly known as Cauldron/MCPC
http://cyberdynecc.github.io/Thermos/
GNU General Public License v3.0
258 stars 184 forks source link

World.regenerateChunk #532

Closed misterzym closed 8 years ago

misterzym commented 8 years ago

\ Explanation of issue: ** All plug-ins using World.regenerateChunk function behave very strangely! When I use it in the game okay. But when I'm out of the field of use, to return me in for a surprise - all actions World.regenerateChunk canceled!

How to recreate this issue:

  1. Set the example WorldEdit.
  2. Make any area set 0.
  3. Make this area // regen.
  4. Log out of the game (that would be the area was unloaded)
  5. Go back to the game after a while.

Mods Installed: backpack-2.0.1-1.7 Balkons-Veapon-1.7.10 CustomMobSpawner 3.3.0 dungeonpack_1.7.10_1.0 Mantle-1.7.10-0.3.2 roguelike-1.7.10 terraincontrol-forge-2.6.3 twilightforest-1.7.10-2.3.7

Plugins Installed: KommandBook MarriageMaster Towny WorldBorder worldedit worldguard WGFix

Thermos Version: Thermos-1.7.10-1614.34-server

Forge Version: 1.7.10 1614

spannerman79 commented 8 years ago

You also need the Worldedit mod on the server - not just the bukkit plugin

Non Thermos issue

misterzym commented 8 years ago

If I use a version of the plug together with the mod, it leads to such a situation - the results of any commands are not displayed in the chat, one to all of them are displayed in the console. And all this without any errors on the console. In addition ax ceases to divide the field, it begins to destroy the blocks.

StargateMC commented 8 years ago

@spannerman79 @Time6628 I can second this also - have seen strange behavior in the last couple of builds. The mod is not required for use at all in earlier builds of Thermos and plugins which depend on WorldEdit (there are many) don't work with the mod.

Solution for me has been to downgrade Thermos.

ghost commented 8 years ago

Funny, I'm using World Edit both plugin and mod and everything works perfectly fine with Thermos 58, Try cycling through the mod and plugin until you find a working combination.

StargateMC commented 8 years ago

This is an issue with the Bukkit world.regeneratechunk method, not WorldEdit.

StargateMC commented 8 years ago

Also, I was simply saying plugins depending for WorldEdit require the plugin - not that the mod was bad haha

misterzym commented 8 years ago

i write mini plugin with worldEdit API

WorldEditPlugin worldEditPlugin = null; worldEditPlugin = (WorldEditPlugin) Custom.serv.getPluginManager().getPlugin("WorldEdit"); Selection sel = worldEditPlugin.getSelection(player); Selection selection = new CuboidSelection(sel.getWorld(),sel.getMinimumPoint(), sel.getMaximumPoint()); Region region = selection.getRegionSelector().getRegion(); region.getWorld().regenerate(region,sessionsWE);

and this work don't have any problem!

StargateMC commented 8 years ago

@misterzym Have you tried logging out (and making sure no players on world) and coming back a minute later (after regenerating) ? For me the regeneration was not saved, and the chunk reverted back to what it was.

Doesn't happen on earlier Builds (46).

misterzym commented 8 years ago

@Bysokar yes, WE API saved all regeneration. i logging out and login and restart server with/with out me source in up - save all.

build 58

StargateMC commented 8 years ago

@misterzym 2 more questions then,

  1. Are you using a bukkit plugin like multiworld to generate worlds?
  2. Are you using B58?
misterzym commented 8 years ago

@Bysokar

  1. no, i have mods generate multiworld (twilige forest and more)
  2. yes
StargateMC commented 8 years ago

@misterzym can you test once more with a multiworld or multiverse (Bukkit) generated world?

StargateMC commented 8 years ago

Ok, so looking at your code it isn't actually related to te Bukkit regenerate chunk method it seems. Your using the world edit API regeneration functions, not the native Bukkit API (it works in chunks, your working with regions).