Skip to content

Instantly share code, notes, and snippets.

View BlackAce21's full-sized avatar

BlackAce21 BlackAce21

  • US
View GitHub Profile
@BlackAce21
BlackAce21 / gist:0c889883165bc0442276ed1b918cf2fc
Created January 8, 2020 08:05
Mohist Forge Capability problem during dimension transfer
https://imgur.com/a/zgxtJYB
The above file displays 2 .dat files from the same player. One before a teleport (left) and after data was changed in the ForgeCap
section. The same data is being shown after a dimension change was made on the right image. The symptoms for this issue as it
appears ingame were tested thoroughly on Mohist with just this mod loaded, and the same version of forge that Mohist is
running (x.2846) Mohist has the problem using the built in /world command and when using portals such as the nether portal.
The data does not save properly and the result is what you see in the image file. The mod itself ALSO has a teleport command built
in which uses its own logic (confirmed by mod author) and this code does not produce the problem. When using forge, nothing bad
happens. The data saves as expected no matter how you change dimensions including using portals.
@BlackAce21
BlackAce21 / gist:0c10f8c54ee34277fcd195a0da38f14f
Created January 4, 2020 23:18
Thread dump from hard lock on image download
2020-01-04 18:15:00
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode):
"Image Download Thread" #224 prio=5 os_prio=0 tid=0x000000005bd58000 nid=0x2e34 waiting for monitor entry [0x000000011a3ef000]
java.lang.Thread.State: BLOCKED (on object monitor)
at com.mrcrayfish.furniture.client.ImageCache.add(ImageCache.java:82)
- waiting to lock <0x0000000777d8ab38> (a com.mrcrayfish.furniture.client.ImageCache)
at com.mrcrayfish.furniture.client.ImageDownloadThread.run(ImageDownloadThread.java:98)
"Image Download Thread" #223 prio=5 os_prio=0 tid=0x0000000036526800 nid=0x28a8 waiting for monitor entry [0x000000011d16f000]
@BlackAce21
BlackAce21 / gist:08f2889a004995336f11b45e69ce4851
Created January 2, 2020 21:26
Error on sending message after reload command
[21:24:18] [Server thread/WARN] [Mohist]: [AutoMessager] Task #360 for AutoMessager v2.1 generated an exception
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_181]
at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_181]
at hu.montlikadani.AutoMessager.bukkit.Announce.onInOrder(Announce.java:111) ~[?:?]
at hu.montlikadani.AutoMessager.bukkit.Announce.lambda$0(Announce.java:85) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:77) ~[CraftTask.class:83bcbf5]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:421) [CraftScheduler.class:83bcbf5]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:836) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:464) [nz.class:?]