Slimefun

Slimefun

3M Downloads

New Autocrafters do not work in Spigot

trekinsanity opened this issue ยท 7 comments

commented

๐Ÿ“ Description (REQUIRED)

No sparkles and no items being crafted.

๐Ÿ“‘ Steps to reproduce the Issue (REQUIRED)

  1. I setup both autocrafters to craft items. I had power and a chest.
  2. I setup a recipe for ladder, lever, sticks, chests, and Thai Tea. Nothing happened. No sparkles and no items being crafted.
  3. Note: variananora and jeffrey@๐Ÿผ.kz helped me on discord.
  4. We tried Paper and it resolved the issue.

๐Ÿ’ก Expected behavior (REQUIRED)

All above items to be crafted.

๐Ÿ“œ Server Log

no erros in log file.

๐Ÿ“‚ /error-reports/ Folder

none.

๐Ÿงญ Environment (REQUIRED)

  • Server Software: Spigot version git-Spigot-db99f82-a021e33 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
  • Minecraft Version: 1.16.5
  • Slimefun Version: sf version: vDev - 847 (git 001e765)
commented

Update probably this is the culprit.

Spigot has no PaperLib.

@Nullable
private Recipe getRecipe(@Nonnull Block b) {
BlockState state = PaperLib.getBlockState(b, false).getState();

PaperLib is part of the Slimefun jar.
It is a compatibility bridge made by the Paper team to allow the use of Paper features and fallback to Spigot alternatives if Paper was not found.

commented

PaperLib is part of the Slimefun jar.
It is a compatibility bridge to allow the use of Paper features and fallback to Spigot alternatives if Paper was not found.

Well not sure code wise what caused it tho. I don't really understand it. lmao.

commented

Quick notes on this:
The crafting process is working fine on Spigot, just the changing Recipe process isn't working on Spigot.

Will post a video soon for better visuals.

commented

Update probably this is the culprit.

Spigot has no PaperLib.

@Nullable
private Recipe getRecipe(@Nonnull Block b) {
BlockState state = PaperLib.getBlockState(b, false).getState();

commented

Any news regarding videos or reproduction steps?
Otherwise I will close it off as "invalid" / "Cannot reproduce".

commented

Step to repro:

(Left Side of Auto Crafter):
0. Use Paper or it's fork.

  1. Put Vanilla Auto-Crafter (also with electricity)
  2. Crouch + Right Click to update the recipe
  3. Watch it could update it and craft the items
  4. Restart to Spigot
  5. Try to update the recipe or removing (you can't)
  6. But crafting process is still working

(Right Side of Auto Crafter):
(Use the same numbering for same time)
4. Use Spigot
5. Try to add recipe to Vanilla Auto-Crafter
6. It said that it updated but it isn't and can't make the items.

Vid: https://youtu.be/b_AXAO5F4R0
(Side note: Sorry for rapid right-click, my mouse has double click issue.)

commented

I see, thanks.
I think I know what's happening there, should be an easy fix.