Everything posted by FredM
-
v1.17 triggering LeftClickBlock event twice
do you think this is a bug @DaemonUmbra?
-
help my forge 1.16 server not working properly
lol, sowwy, I thought it was the one who created the post that was answering to my reply ๐
-
v1.17 triggering LeftClickBlock event twice
not sure how to do that, there's a lot of redundant parameter in there, but this @Mod("examplemod") public class ExampleMod { private static final Logger LOGGER = LogManager.getLogger(); public ExampleMod() { MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void onLeftClickBlock(final LeftClickBlock event) { BlockPos position = event.getPos(); Level world = event.getWorld(); LOGGER.error("Time: {}, Thread: {}, hand: {}, side: {}, destroy progress: {}", new Date().getTime(), Thread.currentThread(), event.getHand(), event.getSide(), world.getBlockState(event.getPos()).getDestroyProgress(event.getPlayer(), new PathNavigationRegion(world, position, position), position)); } } gives this [20:03:08] [Server thread/ERROR]: Time: 1632441788687, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER, destroy progress: 0.055555556 [20:03:08] [Server thread/ERROR]: Time: 1632441788787, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER, destroy progress: 0.055555556
-
help my forge 1.16 server not working properly
well, mainly running 'gradle build'... that's the task that should pull down all the lib dependencies ... more details https://mcforge.readthedocs.io/en/latest/gettingstarted/
-
help my forge 1.16 server not working properly
did you run the initial setup? that class is in guava lib, which comes by default in MDK, so it should be there... do you see it in your IDE?
-
v1.17 triggering LeftClickBlock event twice
the code was actually working fine in 1.16... migrating to 1.17 had this side-effect
-
v1.17 triggering LeftClickBlock event twice
I haven't @SolarisFalls
-
v1.17 triggering LeftClickBlock event twice
Hi, forge 1.17.1-37.0.70 is firing LeftClickBlock twice, same hand, same side. @SubscribeEvent public void onLeftClickBlock(final LeftClickBlock event) { LOGGER.error("Time: {}, Thread: {}, hand: {}, side: {}", new Date().getTime(), Thread.currentThread(), event.getHand(), event.getSide()); } result: [20:19:48] [Server thread/ERROR]: Time: 1632269988298, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER [20:19:48] [Server thread/ERROR]: Time: 1632269988398, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER Bye, F.
IPS spam blocked by CleanTalk.