./gradlew :1.16.2:setCoreVersion

This commit is contained in:
Jonas Herzig
2020-08-28 14:54:53 +02:00
parent 9001fdc9de
commit c2f51d41fa
36 changed files with 233 additions and 233 deletions

View File

@@ -64,7 +64,7 @@ import net.minecraft.util.hit.HitResult;
import net.minecraft.entity.EquipmentSlot;
//#if MC>=11200
//#if MC>=11400
import net.minecraft.client.recipe.book.ClientRecipeBook;
import net.minecraft.client.recipebook.ClientRecipeBook;
//#else
//$$ import net.minecraft.stats.RecipeBook;
//#endif
@@ -150,8 +150,8 @@ public class CameraEntity
, recipeBook
//#endif
//#if MC>=11600
//$$ , false
//$$ , false
, false
, false
//#endif
);
eventHandler.register();
@@ -321,8 +321,8 @@ public class CameraEntity
//#if MC>=11400
@Override
public boolean isInFluid(Tag<Fluid> fluid) {
return falseUnlessSpectating(entity -> entity.isInFluid(fluid));
public boolean isSubmergedIn(Tag<Fluid> fluid) {
return falseUnlessSpectating(entity -> entity.isSubmergedIn(fluid));
}
//#else
//#if MC>=10800

View File

@@ -34,32 +34,32 @@ public class ClassicCameraController implements CameraController {
speedup = false;
for(KeyBinding kb : getMinecraft().options.keysAll) {
if(!kb.isPressed()) continue;
if(kb.getId().equals("key.forward")) {
if(kb.getTranslationKey().equals("key.forward")) {
forward = true;
speedup = true;
}
if(kb.getId().equals("key.back")) {
if(kb.getTranslationKey().equals("key.back")) {
backward = true;
speedup = true;
}
if(kb.getId().equals("key.jump")) {
if(kb.getTranslationKey().equals("key.jump")) {
up = true;
speedup = true;
}
if(kb.getId().equals("key.left")) {
if(kb.getTranslationKey().equals("key.left")) {
left = true;
speedup = true;
}
if(kb.getId().equals("key.right")) {
if(kb.getTranslationKey().equals("key.right")) {
right = true;
speedup = true;
}
if(kb.getId().equals("key.sneak")) {
if(kb.getTranslationKey().equals("key.sneak")) {
down = true;
speedup = true;
}