Skip to content

Commit 9428948

Browse files
author
Michael Hillcox
committed
feat: move to kube 6.1
1 parent 53fe5e5 commit 9428948

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

Diff for: CHANGELOG.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Kube Utils Changelog
22

3-
## [1.0.2]
3+
## [1.0.3]
44

5-
### Added
5+
### Changed
66

7-
- Added a new Level method to allow for finding a single block within an area `findSingleBlockWithinRadius`
8-
- Added a `triggeredBy` field to the `KuEvents.playerStarterItems` event as we now trigger the event for a player joining as well as a player changing dimension. If the event does not place and item in the inventory. We assume it failed and will retry on either a join or a dimension change
7+
- Updated support to KubeJS 6.1! This will cause issues when attempted to use with 6.0. You have been warned!

Diff for: build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ dependencies {
4848

4949
forge "net.minecraftforge:forge:${project.forge_version}"
5050

51-
modApi "dev.latvian.mods:kubejs-forge:1902.6.0-build.140"
52-
modApi "dev.latvian.mods:rhino-forge:1902.2.2-build.264"
51+
modApi "dev.latvian.mods:kubejs-forge:1902.6.1-build.327"
52+
modApi "dev.latvian.mods:rhino-forge:1902.2.2-build.268"
5353
}
5454

5555
processResources {

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ loom.platform=forge
66
minecraft_version=1.19.2
77
forge_version=1.19.2-43.2.3
88

9-
mod_version=1.0.2
9+
mod_version=1.0.3
1010
maven_group=pro.mikey.mods
1111
archives_base_name=kube-utils
1212
mod_id=kubeutils

Diff for: src/main/java/pro/mikey/kubeutils/kubejs/events/PlayerStarterItems.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package pro.mikey.kubeutils.kubejs.events;
22

3+
import dev.latvian.mods.kubejs.event.EventResult;
34
import dev.latvian.mods.kubejs.item.ItemHandlerUtils;
45
import dev.latvian.mods.kubejs.player.PlayerEventJS;
56
import net.minecraft.world.entity.EquipmentSlot;
@@ -61,9 +62,10 @@ public void addEquipmentItem(String equipmentSlot, ItemStack item) {
6162
this.armorItems.put(slot, item);
6263
}
6364

65+
6466
@Override
65-
protected void afterPosted(boolean cancelled) {
66-
if (cancelled) {
67+
protected void afterPosted(EventResult cancelled) {
68+
if (cancelled.interruptTrue()) {
6769
return;
6870
}
6971

0 commit comments

Comments
 (0)