Update to MC 1.14 / Fabric

This commit is contained in:
Jonas Herzig
2019-05-04 14:37:00 +02:00
parent 17fe5b345f
commit 3d009e45c7
151 changed files with 3963 additions and 1455 deletions

View File

@@ -17,7 +17,14 @@ public abstract class MixinGuiSpectator {
//#else
//$$ @Inject(method = "func_175260_a", at = @At("HEAD"), cancellable = true)
//#endif
public void isInReplay(int i, CallbackInfo ci) {
public void isInReplay(
//#if MC>=11400
//$$ double i,
//#else
int i,
//#endif
CallbackInfo ci
) {
// Prevent spectator gui from opening while in a replay
if (getMinecraft().player instanceof CameraEntity) {
ci.cancel();