19w39a first fixes

This commit is contained in:
gnembon committed 2019-09-27 12:37:27 -05:00
1 parent 5b411aea19
commit 4b55b1465d
8 files changed
+17 -17

No files matched your search

+3 -3
View File
@@ -4,9 +4,9 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html # or better: https://modmuss50.me/fabric.html
minecraft_version=19w38b minecraft_version=19w39a
yarn_mappings=19w38b+build.4 yarn_mappings=19w39a+build.2
loader_version=0.6.1+build.165 loader_version=0.6.2+build.166
# Mod Properties # Mod Properties
mod_version = 1.1.0+v190927 mod_version = 1.1.0+v190927
@@ -255,7 +255,7 @@ public class BlockRotator
if (block instanceof BedBlock) if (block instanceof BedBlock)
return stack; return stack;
Direction face = iblockstate.get(HorizontalFacingBlock.FACING); Direction face = iblockstate.get(HorizontalFacingBlock.FACING);
face = face.rotateClockwise(Direction.Axis.Y); face = rotateClockwise(face, Direction.Axis.Y);
if(sourceFace == Direction.DOWN) if(sourceFace == Direction.DOWN)
{ // same as above. { // same as above.
@@ -5,7 +5,7 @@ import carpet.helpers.TickSpeed;
import net.minecraft.client.MinecraftClient; import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.Camera; import net.minecraft.client.render.Camera;
import net.minecraft.client.render.GameRenderer; import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.render.VisibleRegion; //import net.minecraft.client.render.VisibleRegion;
import net.minecraft.client.render.WorldRenderer; import net.minecraft.client.render.WorldRenderer;
import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
@@ -105,7 +105,7 @@ public abstract class RedstoneWireBlockMixin implements RedstoneWireBlockInterfa
if (blockState_3.isSimpleFullBlock(world_1, blockPos_2) && !world_1.getBlockState(blockPos_3).isSimpleFullBlock(world_1, blockPos_3)) { if (blockState_3.isSimpleFullBlock(world_1, blockPos_2) && !world_1.getBlockState(blockPos_3).isSimpleFullBlock(world_1, blockPos_3)) {
int_3 = this.increasePower(int_3, world_1.getBlockState(blockPos_2.up())); int_3 = this.increasePower(int_3, world_1.getBlockState(blockPos_2.up()));
} else if (!blockState_3.isSimpleFullBlock(world_1, blockPos_2)) { } else if (!blockState_3.isSimpleFullBlock(world_1, blockPos_2)) {
int_3 = this.increasePower(int_3, world_1.getBlockState(blockPos_2.down())); int_3 = this.increasePower(int_3, world_1.getBlockState(blockPos_2.down(1)));
} }
} }
} }
@@ -58,7 +58,7 @@ import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld; import net.minecraft.server.world.ServerWorld;
import net.minecraft.sound.BlockSoundGroup; import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.sound.SoundCategory; import net.minecraft.sound.SoundCategory;
import net.minecraft.state.StateFactory; import net.minecraft.state.StateManager;
import net.minecraft.state.property.Property; import net.minecraft.state.property.Property;
import net.minecraft.text.LiteralText; import net.minecraft.text.LiteralText;
import net.minecraft.util.Clearable; import net.minecraft.util.Clearable;
@@ -238,7 +238,7 @@ public class CarpetExpression
private <T extends Comparable<T>> BlockState setProperty(Property<T> property, String name, String value, private <T extends Comparable<T>> BlockState setProperty(Property<T> property, String name, String value,
BlockState bs) BlockState bs)
{ {
Optional<T> optional = property.getValue(value); Optional<T> optional = property.parse(value);
if (optional.isPresent()) if (optional.isPresent())
{ {
@@ -807,7 +807,7 @@ public class CarpetExpression
BlockState targetBlockState = world.getBlockState(targetLocator.block.getPos()); BlockState targetBlockState = world.getBlockState(targetLocator.block.getPos());
if (sourceLocator.offset < lv.size()) if (sourceLocator.offset < lv.size())
{ {
StateFactory<Block, BlockState> states = sourceBlockState.getBlock().getStateFactory(); StateManager<Block, BlockState> states = sourceBlockState.getBlock().getStateFactory();
for (int i = sourceLocator.offset; i < lv.size(); i += 2) for (int i = sourceLocator.offset; i < lv.size(); i += 2)
{ {
String paramString = lv.get(i).evalValue(c).getString(); String paramString = lv.get(i).evalValue(c).getString();
@@ -979,7 +979,7 @@ public class CarpetExpression
if (lv.size() <= locator.offset) if (lv.size() <= locator.offset)
throw new InternalExpressionException("property requires to specify a property to query"); throw new InternalExpressionException("property requires to specify a property to query");
String tag = lv.get(locator.offset).evalValue(c).getString(); String tag = lv.get(locator.offset).evalValue(c).getString();
StateFactory<Block, BlockState> states = state.getBlock().getStateFactory(); StateManager<Block, BlockState> states = state.getBlock().getStateFactory();
Property<?> property = states.getProperty(tag); Property<?> property = states.getProperty(tag);
if (property == null) if (property == null)
return LazyValue.NULL; return LazyValue.NULL;
@@ -991,7 +991,7 @@ public class CarpetExpression
{ {
BlockValue.LocatorResult locator = BlockValue.fromParams((CarpetContext) c, lv, 0); BlockValue.LocatorResult locator = BlockValue.fromParams((CarpetContext) c, lv, 0);
BlockState state = locator.block.getBlockState(); BlockState state = locator.block.getBlockState();
StateFactory<Block, BlockState> states = state.getBlock().getStateFactory(); StateManager<Block, BlockState> states = state.getBlock().getStateFactory();
Value res = ListValue.wrap(states.getProperties().stream().map( Value res = ListValue.wrap(states.getProperties().stream().map(
p -> new StringValue(p.getName())).collect(Collectors.toList()) p -> new StringValue(p.getName())).collect(Collectors.toList())
); );
@@ -1987,7 +1987,7 @@ public class CarpetExpression
List<Value> neighbours = new ArrayList<>(); List<Value> neighbours = new ArrayList<>();
neighbours.add(new BlockValue(null, world, center.up())); neighbours.add(new BlockValue(null, world, center.up()));
neighbours.add(new BlockValue(null, world, center.down())); neighbours.add(new BlockValue(null, world, center.down(1)));
neighbours.add(new BlockValue(null, world, center.north())); neighbours.add(new BlockValue(null, world, center.north()));
neighbours.add(new BlockValue(null, world, center.south())); neighbours.add(new BlockValue(null, world, center.south()));
neighbours.add(new BlockValue(null, world, center.east())); neighbours.add(new BlockValue(null, world, center.east()));
@@ -107,7 +107,7 @@ public class PerimeterDiagnostics
pos = new BlockPos(eX+x, y, eZ+z); pos = new BlockPos(eX+x, y, eZ+z);
BlockState iblockstate = worldserver.getBlockState(pos); BlockState iblockstate = worldserver.getBlockState(pos);
BlockState iblockstate_down = worldserver.getBlockState(pos.down()); BlockState iblockstate_down = worldserver.getBlockState(pos.down(1));
BlockState iblockstate_up = worldserver.getBlockState(pos.up()); BlockState iblockstate_up = worldserver.getBlockState(pos.up());
if ( iblockstate.getMaterial() == Material.WATER && iblockstate_down.getMaterial() == Material.WATER && !iblockstate_up.isSimpleFullBlock(worldserver, pos)) if ( iblockstate.getMaterial() == Material.WATER && iblockstate_down.getMaterial() == Material.WATER && !iblockstate_up.isSimpleFullBlock(worldserver, pos))
@@ -165,7 +165,7 @@ public class SpawnReporter
public static List<BaseText> show_mobcaps(BlockPos pos, World worldIn) public static List<BaseText> show_mobcaps(BlockPos pos, World worldIn)
{ {
DyeColor under = WoolTool.getWoolColorAtPosition(worldIn, pos.down()); DyeColor under = WoolTool.getWoolColorAtPosition(worldIn, pos.down(1));
if (under == null) if (under == null)
{ {
if (track_spawns > 0L) if (track_spawns > 0L)
+3 -3
View File
@@ -60,7 +60,7 @@ public class WoolTool
break; break;
case GRAY: case GRAY:
if (CarpetSettings.commandInfo) if (CarpetSettings.commandInfo)
Messenger.send(placer, BlockInfo.blockInfo(pos.down(), worldIn)); Messenger.send(placer, BlockInfo.blockInfo(pos.down(1), worldIn));
break; break;
case YELLOW: case YELLOW:
if (CarpetSettings.commandInfo) if (CarpetSettings.commandInfo)
@@ -70,7 +70,7 @@ public class WoolTool
case GREEN: case GREEN:
if (CarpetSettings.hopperCounters) if (CarpetSettings.hopperCounters)
{ {
DyeColor under = getWoolColorAtPosition(worldIn, pos.down()); DyeColor under = getWoolColorAtPosition(worldIn, pos.down(1));
if (under == null) return; if (under == null) return;
HopperCounter counter = HopperCounter.getCounter(under.toString()); HopperCounter counter = HopperCounter.getCounter(under.toString());
if (counter != null) if (counter != null)
@@ -80,7 +80,7 @@ public class WoolTool
case RED: case RED:
if (CarpetSettings.hopperCounters) if (CarpetSettings.hopperCounters)
{ {
DyeColor under = getWoolColorAtPosition(worldIn, pos.down()); DyeColor under = getWoolColorAtPosition(worldIn, pos.down(1));
if (under == null) return; if (under == null) return;
HopperCounter counter = HopperCounter.getCounter(under.toString()); HopperCounter counter = HopperCounter.getCounter(under.toString());
if (counter == null) return; if (counter == null) return;