NavidK0 / Carbon

Carbon is a Spigot plugin which turns a spigot protocol hacked server (on 1.7.10) into a 1.8 server.
GNU Lesser General Public License v3.0
35 stars 19 forks source link

Redstone comparators no longer output a signal to hoppers or chests. #171

Closed mibby closed 10 years ago

mibby commented 10 years ago

Dev build 48. http://build.true-games.org/job/Carbon/48/ Removing Carbon, redstone comparators work again.

I believe this commit is the culprit? https://github.com/NavidK0/Carbon/commit/df6a623c4aba8117cde448fc61115ebf62467591

Matmorcat commented 10 years ago

Same. This happens to item frames as well with Carbon. The comparators have to be manually updated (via a nearby block update or toggling the comparator to subtract mode and back.

I remember it working when I first added Carbon to the server (maybe one of the earlier builds). Now I run Build 43 and it doesn't work.

Shevchik commented 10 years ago

I'm not sure what you mean by outputting a signal to a chest, but i tried to fix. Can you please make a vid explaining what you mean.

mibby commented 10 years ago

Sorry, I'm not entirely sure myself. Just forwarding what others on my server have informed me what broke recently within carbon. I'm assuming sending a redstone signal to/through the chest, as it would with hoppers or other redstone mechanics. I'll update and check if it is functional again.

Shevchik commented 10 years ago

Actually i probably found the reason. Navid should really learn to merge properly >_<.

Shevchik commented 10 years ago

Should be fixed now.

mibby commented 10 years ago

@Shevchik Latest dev build, version 53

[01:32:46] [Server thread/INFO]: java.lang.IllegalArgumentException: Can not set static net.minecraft.server.v1_7_R4.BlockRedstoneComparator field net.minecraft.server.v1_7_R4.Blocks.REDSTONE_COMPARATOR_OFF to com.lastabyss.carbon.blocks.BlockRedstoneComparator
[01:32:46] [Server thread/INFO]:    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
[01:32:46] [Server thread/INFO]:    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
[01:32:46] [Server thread/INFO]:    at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
[01:32:46] [Server thread/INFO]:    at java.lang.reflect.Field.set(Unknown Source)
[01:32:46] [Server thread/INFO]:    at com.lastabyss.carbon.Injector.setStaticFinalField(Injector.java:664)
[01:32:46] [Server thread/INFO]:    at com.lastabyss.carbon.Injector.registerAll(Injector.java:618)
[01:32:46] [Server thread/INFO]:    at com.lastabyss.carbon.Carbon.onLoad(Carbon.java:96)
[01:32:46] [Server thread/INFO]:    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:374)
[01:32:46] [Server thread/INFO]:    at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:152)
[01:32:46] [Server thread/INFO]:    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458)
[01:32:46] [Server thread/INFO]:    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
Shevchik commented 10 years ago

Shii..

Shevchik commented 10 years ago

Should now work.

mibby commented 10 years ago

No more error on startup. :) Quickly testing, comparator seems to be lighting up when set next to a chest or hopper with an item in it. Signal off when no items are in either a chest or hopper. I believe this is the intended behavior, confirming in singleplayer anyways. I'll get back to the players who reported it was broken to see if it is fixed with them.

mibby commented 10 years ago

Confirmed fixed.