Skip to content

Commit

Permalink
Bump Fabric to 1.15.2. It already worked on 1.15.2 before this, just …
Browse files Browse the repository at this point in the history
…bumping mappings.
  • Loading branch information
me4502 committed Jan 24, 2020
1 parent a27ade5 commit 00d6c31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions worldedit-fabric/build.gradle.kts
Expand Up @@ -6,9 +6,9 @@ applyShadowConfiguration()

apply(plugin = "fabric-loom")

val minecraftVersion = "1.15.1"
val yarnMappings = "1.15.1+build.6"
val loaderVersion = "0.7.2+build.175"
val minecraftVersion = "1.15.2"
val yarnMappings = "1.15.2+build.7"
val loaderVersion = "0.7.6+build.179"

configurations.all {
resolutionStrategy {
Expand Down
Expand Up @@ -36,9 +36,9 @@
import com.mojang.datafixers.Dynamic;
import com.mojang.datafixers.schemas.Schema;
import com.sk89q.jnbt.CompoundTag;
import net.minecraft.datafixers.NbtOps;
import net.minecraft.datafixers.Schemas;
import net.minecraft.datafixers.TypeReferences;
import net.minecraft.datafixer.NbtOps;
import net.minecraft.datafixer.Schemas;
import net.minecraft.datafixer.TypeReferences;
import net.minecraft.nbt.FloatTag;
import net.minecraft.nbt.ListTag;
import net.minecraft.nbt.StringTag;
Expand Down
Expand Up @@ -194,7 +194,7 @@ public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 position, B
BlockEntity tileEntity = getWorld().getWorldChunk(pos).getBlockEntity(pos);
if (tileEntity != null) {
tileEntity.fromTag(nativeTag);
tileEntity.setWorld(world, pos);
tileEntity.setLocation(world, pos);
successful = true; // update if TE changed as well
}
}
Expand Down Expand Up @@ -278,7 +278,7 @@ public boolean useItem(BlockVector3 position, BaseItem item, Direction face) {
return false;
}
fakePlayer.setStackInHand(Hand.MAIN_HAND, stack);
fakePlayer.setPositionAndAngles(position.getBlockX(), position.getBlockY(), position.getBlockZ(),
fakePlayer.updatePositionAndAngles(position.getBlockX(), position.getBlockY(), position.getBlockZ(),
(float) face.toVector().toYaw(), (float) face.toVector().toPitch());
final BlockPos blockPos = FabricAdapter.toBlockPos(position);
final BlockHitResult rayTraceResult = new BlockHitResult(FabricAdapter.toVec3(position),
Expand Down Expand Up @@ -367,7 +367,7 @@ public boolean regenerate(Region region, EditSession editSession) {
case BIRCH: return Feature.NORMAL_TREE.configure(DefaultBiomeFeatures.BIRCH_TREE_CONFIG);
case JUNGLE: return Feature.MEGA_JUNGLE_TREE.configure(DefaultBiomeFeatures.MEGA_JUNGLE_TREE_CONFIG);
case SMALL_JUNGLE: return Feature.NORMAL_TREE.configure(DefaultBiomeFeatures.JUNGLE_TREE_CONFIG);
case SHORT_JUNGLE: return new OakTreeFeature(BranchedTreeFeatureConfig::deserialize2)
case SHORT_JUNGLE: return new OakTreeFeature(BranchedTreeFeatureConfig::deserialize)
.configure(DefaultBiomeFeatures.JUNGLE_SAPLING_TREE_CONFIG);
case JUNGLE_BUSH: return Feature.JUNGLE_GROUND_BUSH.configure(DefaultBiomeFeatures.JUNGLE_GROUND_BUSH_CONFIG);
case SWAMP: return Feature.NORMAL_TREE.configure(DefaultBiomeFeatures.SWAMP_TREE_CONFIG);
Expand Down Expand Up @@ -564,7 +564,7 @@ public Entity createEntity(Location location, BaseEntity entity) {
createdEntity.fromTag(tag);
}

createdEntity.setPositionAndAngles(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
createdEntity.updatePositionAndAngles(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());

world.spawnEntity(createdEntity);
return new FabricEntity(createdEntity);
Expand Down

0 comments on commit 00d6c31

Please sign in to comment.