Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 7259a8e

Browse files
committed
update version
1 parent 1d4a4be commit 7259a8e

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

gradle.properties

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx1G
2+
#org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/use
6-
minecraft_version=1.16.1
7-
yarn_mappings=1.16.1+build.1
8-
loader_version=0.8.8+build.202
6+
minecraft_version=1.16.2
7+
yarn_mappings=1.16.2+build.1
8+
loader_version=0.9.1+build.205
99

1010
# Mod Properties
11-
mod_version = 1.0.0
11+
mod_version = 1.1.0
1212
maven_group = com.mymindstorm
1313
archives_base_name = telekinesis-mod
1414

1515
# Dependencies
1616
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
17-
fabric_version=0.13.1+build.370-1.16
17+
fabric_version=0.17.2+build.396-1.16

src/main/java/com/mymindstorm/telekinesis/TelekinesisEnchantment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class TelekinesisEnchantment extends Enchantment {
88
public TelekinesisEnchantment() {
9-
super(Rarity.UNCOMMON, EnchantmentTarget.BREAKABLE, new EquipmentSlot[] {EquipmentSlot.MAINHAND});
9+
super(Rarity.VERY_RARE, EnchantmentTarget.BREAKABLE, new EquipmentSlot[] {EquipmentSlot.MAINHAND});
1010
}
1111

1212
@Override

src/main/java/com/mymindstorm/telekinesis/TelekinesisMod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public void onInitialize() {
3232
// Tall block logic
3333
if (entity == null) {
3434
// Get all players that have enchantment in 5 block radius
35-
List<PlayerEntity> players = world.getEntities(PlayerEntity.class, new Box(pos.add(-5, -32, -5), pos.add(5, 32, 5)),
35+
List<PlayerEntity> players = world.getEntitiesByClass(PlayerEntity.class, new Box(pos.add(-5, -32, -5), pos.add(5, 32, 5)),
3636
playerEntity -> EnchantmentHelper.getLevel(ENCHANTMENT_TELEKINESIS, playerEntity.getMainHandStack()) > 0);
3737
if (players.isEmpty()) {
3838
return true;

src/main/resources/telekinesis.mixins.json

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
"EntityItemDropMixin",
99
"PlayerTelekinesisTrackerMixin"
1010
],
11-
"server": [
12-
"BlockItemDropMixin",
13-
"EntityItemDropMixin",
14-
"PlayerTelekinesisTrackerMixin"
15-
],
1611
"injectors": {
1712
"defaultRequire": 1
1813
}

0 commit comments

Comments
 (0)