Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Jun 23, 2020
1 parent 59fa9ce commit 7231d52
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.16-rc1
yarn_mappings=1.16-rc1+build.1
minecraft_version=1.16
yarn_mappings=1.16+build.1
# loader version is on Earthcomputer's fork of fabric-loader https://github.com/Earthcomputer/fabric-loader/tree/multiconnect
loader_version=a91e71a7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public class Protocols {

public static final int V1_16 = 734;
public static final int V1_16 = 735;
public static final int V1_15_2 = 578;
public static final int V1_15_1 = 575;
public static final int V1_15 = 573;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum ConnectionMode implements IProtocol {

// Protocols should go in reverse chronological order
AUTO("Auto", -1, true),
V1_16("1.16-rc1", Protocols.V1_16, true),
V1_16("1.16", Protocols.V1_16, true),
V1_15_2("1.15.2", Protocols.V1_15_2),
V1_15_1("1.15.1", Protocols.V1_15_1),
V1_15("1.15", Protocols.V1_15, true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void modifyFluidMovementBoundingBox(Tag<Fluid> fluidTag, double d, Callb
for (int z = minZ; z < maxZ; z++) {
mutable.set(x, y, z);
FluidState state = world.getFluidState(mutable);
if (state.matches(fluidTag)) {
if (state.isIn(fluidTag)) {
double height = y + state.getHeight(world, mutable);
if (height >= box.minY - 0.4)
waterHeight = Math.max(height - box.minY + 0.4, waterHeight);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private void onOnEntitySpawn(EntitySpawnS2CPacket packet, CallbackInfo ci) {
|| packet.getEntityTypeId() == EntityType.SPECTRAL_ARROW
|| packet.getEntityTypeId() == EntityType.TRIDENT) {
onVelocityUpdate(new EntityVelocityUpdateS2CPacket(packet.getId(),
new Vec3d(packet.getVelocityX(), packet.getVelocityY(), packet.getVelocityz())));
new Vec3d(packet.getVelocityX(), packet.getVelocityY(), packet.getVelocityZ())));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ public boolean acceptEntityData(Class<? extends Entity> clazz, TrackedData<?> da
});
return false;
}
if (clazz == WolfEntity.class && data == WolfEntityAccessor.getRemainingAngerTicks()) {
if (clazz == WolfEntity.class && data == WolfEntityAccessor.getAngerTime()) {
return false;
}
return super.acceptEntityData(clazz, data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

@Mixin(WolfEntity.class)
public interface WolfEntityAccessor {
@Accessor("field_25373")
static TrackedData<Integer> getRemainingAngerTicks() {
@Accessor("ANGER_TIME")
static TrackedData<Integer> getAngerTime() {
return MixinHelper.fakeInstance();
}
}

0 comments on commit 7231d52

Please sign in to comment.