Skip to content

Commit

Permalink
Marked as incompatible with MC 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Estecka committed Jun 14, 2024
1 parent 53c9d67 commit 6012467
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ Initial release
### 2.1.1
- Fixed a crash that would occur upon restock if Depleted Reroll is disabled.
## 2.2
- Updated for 1.20.5:
### 2.2.0
- Updated for MC 1.20.5
- For caching, a map's `item_name` takes priority over the `custom_name` if both are present.
- Placeholder trades are no longer empty. (Cosmetic change only.)
- Added custom logic for upgrading caches from before 1.20.5
### 2.2.1
- Updated for MC 1.21
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ loader_version=0.15.10
fabric_version=0.97.6+1.20.5

# Mod Properties
mod_version=2.2.0
mod_version=2.2.1
maven_group=tk.estecka.shiftingwares
archives_base_name=shifting-wares
4 changes: 4 additions & 0 deletions port.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ Current master
#### Possible Workaround:
- `ItemStack::writeToNbt` and `readFromNbt` were removed or changed: Use `ItemStack::CODEC` instead.
- Trade offers no longer support selling or buying air: Use some placeholder items instead.

### 1.21.0
#### No Workaround
- `getRandom()` was moved from `LivingEntity` to its parent class `Entity`. No code change required, but needs recompilation.
2 changes: 1 addition & 1 deletion src/main/java/tk/estecka/shiftingwares/ShiftingWares.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ShiftingWares
{
static public final Logger LOGGER = LoggerFactory.getLogger("Shifting-Wares");

static public final CustomGameRuleCategory RULE_CATTEGORY = new CustomGameRuleCategory(new Identifier("shifting-wares","gamerules"), Text.translatable("gamerule.category.shiftingwares").formatted(Formatting.BOLD, Formatting.YELLOW));
static public final CustomGameRuleCategory RULE_CATTEGORY = new CustomGameRuleCategory(Identifier.of("shifting-wares","gamerules"), Text.translatable("gamerule.category.shiftingwares").formatted(Formatting.BOLD, Formatting.YELLOW));

static public final GameRules.Key<BooleanRule> DAILY_RULE = GameRuleRegistry.register("shiftingWares.dailyReroll", RULE_CATTEGORY, GameRuleFactory.createBooleanRule(true));
static public final GameRules.Key<BooleanRule> DEPLETED_RULE = GameRuleRegistry.register("shiftingWares.depleteReroll", RULE_CATTEGORY, GameRuleFactory.createBooleanRule(true));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class VanillaTradeLayout
implements ITradeLayoutProvider
{
static public final Identifier TRADE_REBALANCE_FLAGID = new Identifier("minecraft", "trade_rebalance");
static public final Identifier TRADE_REBALANCE_FLAGID = Identifier.of("minecraft", "trade_rebalance");
static public final boolean IS_EXP_TRADE_AVAILABLE;

static {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"accessWidener" : "shifting-wares.accesswidener",
"depends": {
"minecraft": "^1.20.5",
"minecraft": ">=1.20.5 <1.21",
"fabricloader": ">=0.15.10",
"fabric-api": "*",
"java": ">=21"
Expand Down

0 comments on commit 6012467

Please sign in to comment.