-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load 1.12+ ItemBlocks obtained in PM4 #6008
Comments
Can confirm, also happens to me. Would be great if it either would be replaced with an update block or if it would accept the deserializer from the plugin. |
from what i see it's because pm 4 doesn't save block tag on items so pm creates You can use reflection to add your item -> block map for >1.12 blocks |
This is the fault of the plugin for using IDs and meta in PM4 that weren't supported by vanilla. You need a plugin that registers the proper upgrade mappings in BlockIdMetaUpgrader in PM5. |
The server crashing issue is a duplicate of #5128 |
This issue seems to be fixed by registering the itemblocks as items, so there really is something wrong in the way PM4 saves the itemblocks /**
* https://github.com/diamond-gold/DummyItemsBlocks/issues/5
* Doesn't work for blocks already taken over by pmmp since they can't exist in config
* @param string[] $blocks
* @param string[] $items
* @return void
*/
private function workaroundIssue5(array $blocks, array $items): void
{
foreach (array_diff($blocks, $items) as $block) {
//$this->getLogger()->debug("Block $block registering workaround...");
try {
self::registerSimpleItem($block, StringToItemParser::getInstance()->parse($block), [], false);
} catch (Throwable $e) {
//$this->getLogger()->debug("Failed to register block $block as item: " . $e->getMessage());
}
}
} |
This is not the fault of PM. There is a very good reason none of the >1.12 blocks were implemented in PM4. I warned people this would happen... |
Can’t you just replace these blocks with update blocks or just don’t load them (air)? Otherwise servers with this blocks are bricked for ever. I think this will help to at least not lose everything from PM4… who cares about these nether items blocks if you can keep the rest. |
Or just with the base block if it exists? There has to be a solution otherwise I won’t be able to use my servers anymore. |
Link to crashdump: https://crash.pmmp.io/view/9112014
Steps to reproduce
warped_nylium
or any of the blocks added by the pluginwarped_nylium
such as https://github.com/diamond-gold/DummyItemsBlocksThe text was updated successfully, but these errors were encountered: