Slimefun / Slimefun4

Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
GNU General Public License v3.0
973 stars 546 forks source link

Slimefun Spitting Errors #510

Closed lukemango closed 6 years ago

lukemango commented 6 years ago

Description

Describe your Issue AS DETAILED AS POSSIBLE. Spitting console errors

Server Log

Upload your FULL SERVER LOG (/logs/latest.log) to http://pastebin.com/ and paste your link in here. Without this File, we may not be able to help you at all. https://pastebin.com/kGCXnJya

Evidence / Proof

Attach as many Screenshots or Videos if possible. Anything that helps us understand the Issue better, is gonna get your Issue fixed even faster.

Environment

We need the EXACT VERSIONS of the Software you are using. This includes your Minecraft Version, your CS-CoreLib version and your Slimefun Version. If you cannot figure out what versions you are running, then please run /sf versions and show us the output of that command. PaperSpigot 1.12.2 v1_12_R1 CS-CoreLib v1.5.16 Slimefun v4.1.10 Barrels v1.11 SlimeXpansion v1.1.9

Poslovitch commented 6 years ago

This pastebin doesn't give us any information.

Please paste the part below the "Caused by : ..."

lukemango commented 6 years ago

https://pastebin.com/ecEYuDZ3

lukemango commented 6 years ago

https://pastebin.com/pgLCAHL3

WindUnwaken commented 6 years ago

I also have this issue when startup with latest spigot build

Poslovitch commented 6 years ago

In these three pastebin, the error is Could not pass event InventoryMoveItemEvent to Slimefun v4.1.11

and caused by java.lang.ClassCastException

Poslovitch commented 6 years ago

Okay, I know where it comes from : https://github.com/TheBusyBiscuit/Slimefun4/blob/master/src/me/mrCookieSlime/Slimefun/listeners/ItemListener.java#L66

    @EventHandler
    public void onIgnitionChamberItemMove(InventoryMoveItemEvent e) {
        if(BlockStorage.check(((Hopper) e.getInitiator().getHolder()).getBlock(), "IGNITION_CHAMBER")) {
            e.setCancelled(true);
        }
    }

@AtomicScience

There are not enough checks there. I'll push a fix.