Fixed various bugs relating to placement
This commit is contained in:
parent
a5366a9a2f
commit
68341b7ff1
|
|
@ -78,8 +78,11 @@ public class PlacementHandler
|
|||
}
|
||||
|
||||
level.setBlockAndUpdate(pos, state);
|
||||
if (blockEntity != null)
|
||||
if (blockEntity != null) {
|
||||
blockEntity.setBlockState(state);
|
||||
level.setBlockEntity(blockEntity);
|
||||
}
|
||||
|
||||
level.updateNeighborsAt(pos.relative(Direction.DOWN), level.getBlockState(pos.relative(Direction.DOWN)).getBlock());
|
||||
carry.clear();
|
||||
CarryOnDataManager.setCarryData(player, carry);
|
||||
|
|
|
|||
|
|
@ -245,7 +245,10 @@ public class CarryConfig
|
|||
"betterstorage:*", "practicallogistics2:*", "wearablebackpacks:*", "rftools:screen",
|
||||
"rftools:creative_screen", "create:*", "magic_doorknob:*", "iceandfire:*", "ftbquests:*",
|
||||
"waystones:*", "contact:*", "framedblocks:*", "securitycraft:*", "forgemultipartcbe:*", "integrateddynamics:cable",
|
||||
"mekanismgenerators:wind_generator"
|
||||
"mekanismgenerators:wind_generator", "cookingforblockheads:cabinet", "cookingforblockheads:corner", "cookingforblockheads:counter",
|
||||
"cookingforblockheads:oven", "cookingforblockheads:toaster", "cookingforblockheads:milk_jar", "cookingforblockheads:cow_jar",
|
||||
"cookingforblockheads:fruit_basket", "cookingforblockheads:cooking_table", "cookingforblockheads:fridge", "cookingforblockheads:sink",
|
||||
"powah:*"
|
||||
};
|
||||
|
||||
@Property(
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public class ListHandler {
|
|||
private static List<TagKey<EntityType<?>>> FORBIDDEN_STACKING_TAGS = new ArrayList<>();
|
||||
private static List<TagKey<EntityType<?>>> ALLOWED_STACKING_TAGS = new ArrayList<>();
|
||||
|
||||
private static Set<Class<?>> PROPERTY_EXCEPTION_CLASSES = new HashSet<>();
|
||||
private static Set<Property<?>> PROPERTY_EXCEPTION_CLASSES = new HashSet<>();
|
||||
|
||||
public static boolean isPermitted(Block block)
|
||||
{
|
||||
|
|
@ -58,7 +58,7 @@ public class ListHandler {
|
|||
|
||||
public static boolean isPropertyException(Property<?> prop)
|
||||
{
|
||||
return PROPERTY_EXCEPTION_CLASSES.contains(prop.getValueClass());
|
||||
return PROPERTY_EXCEPTION_CLASSES.contains(prop);
|
||||
}
|
||||
|
||||
private static boolean doCheck(Block block, Set<String> regular, List<TagKey<Block>> tags)
|
||||
|
|
@ -136,7 +136,7 @@ public class ListHandler {
|
|||
for(String propName : props.split(",")) {
|
||||
for (Property<?> prop : blk.defaultBlockState().getProperties()) {
|
||||
if (prop.getName().equals(propName))
|
||||
PROPERTY_EXCEPTION_CLASSES.add(prop.getValueClass());
|
||||
PROPERTY_EXCEPTION_CLASSES.add(prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ issueTrackerURL="https://github.com/Tschipp/CarryOn/issues"
|
|||
# Does this dependency have to exist - if not, ordering below must be specified
|
||||
mandatory=true #mandatory
|
||||
# The version range of the dependency
|
||||
versionRange="[47,)" #mandatory
|
||||
versionRange="[47,47.1.3]" #mandatory
|
||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||
ordering="NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||
|
|
@ -28,6 +28,6 @@ issueTrackerURL="https://github.com/Tschipp/CarryOn/issues"
|
|||
[[dependencies.carryon]]
|
||||
modId="minecraft"
|
||||
mandatory=true
|
||||
versionRange="[1.20.1,1.21)"
|
||||
versionRange="[1.20,1.21)"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Project
|
||||
version=2.1.1
|
||||
version=2.1.2
|
||||
group=tschipp.carryon
|
||||
|
||||
# Common
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user