Restore the first implementation by Jimx-, which was actually correct
Restore the first implementation by Jimx-, which was actually correct

Jimx-/Minecraft,wangjun/Minecraft,Jimx-/Minecraft,yusihao51/Minecraft,beni55/Minecraft