Skip to content

Commit 5095518

Browse files
committed
Fix lots of vanilla teleportation-related bugs
1 parent 7a5d7ae commit 5095518

File tree

10 files changed

+239
-121
lines changed

10 files changed

+239
-121
lines changed

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ minecraft {
7474
replace '${version}', fullVersion
7575
makeObfSourceJar = false
7676
//noinspection GroovyUnusedAssignment
77-
def args = [ // TODO: https://github.com/SpongePowered/Mixin/issues/140
77+
def args = [
7878
"-Dfml.noGrab=false",
7979
"-Dfml.coreMods.load=org.dimdev.vanillafix.VanillaFixCoreMod",
8080
"-Dmixin.env.compatLevel=JAVA_8",
81-
//"-Dmixin.debug.verbose=true",
82-
//"-Dmixin.debug.export=true",
81+
"-Dmixin.debug=true",
82+
"-Dmixin.debug.verbose=true",
83+
"-Dmixin.debug.export=true",
8384
"-Dmixin.checks.interfaces=true"
8485
]
8586
}

src/main/java/org/dimdev/ddutils/schem/Schematic.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,6 @@ private void setBlocks(World world, int xBase, int yBase, int zBase) {
393393
long setTime = 0;
394394
long relightTime = 0;
395395
// CubicChunks makes cubic worlds implement ICubicWorld
396-
// Just "world instanceof ICubicWorld" would throw a class not found error
397-
//noinspection InstanceofIncompatibleInterface
398396
if (cubicChunks && ((ICubicWorld) world).isCubicWorld()) {
399397
DimDoors.log.info("Setting cube blockstates");
400398
ICubicWorld cubicWorld = (ICubicWorld) world;

src/main/java/org/dimdev/dimdoors/shared/blocks/BlockDimensionalTrapdoor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.dimdev.dimdoors.shared.blocks;
22

3-
import net.minecraft.block.Block;
43
import net.minecraft.block.BlockDoor;
54
import net.minecraft.block.BlockTrapDoor;
65
import net.minecraft.block.ITileEntityProvider;

src/main/java/org/dimdev/dimdoors/shared/items/ItemRecord.java renamed to src/main/java/org/dimdev/dimdoors/shared/items/ItemModRecord.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package org.dimdev.dimdoors.shared.items;
22

3+
import net.minecraft.item.ItemRecord;
34
import net.minecraft.util.SoundEvent;
45
import org.dimdev.dimdoors.DimDoors;
56

6-
public class ItemRecord extends net.minecraft.item.ItemRecord {
7-
protected ItemRecord(String recordName, SoundEvent soundIn) {
7+
public class ItemModRecord extends ItemRecord {
8+
protected ItemModRecord(String recordName, SoundEvent soundIn) {
89
super(recordName, soundIn);
910
setRegistryName(DimDoors.MODID, "record_" + recordName);
1011
setUnlocalizedName("record");

src/main/java/org/dimdev/dimdoors/shared/items/ItemRiftBlade.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.dimdev.dimdoors.DimDoors;
66
import org.dimdev.dimdoors.client.TileEntityFloatingRiftRenderer;
77
import org.dimdev.dimdoors.shared.ModConfig;
8-
import org.dimdev.dimdoors.shared.tileentities.TileEntityFloatingRift;
98
import org.dimdev.ddutils.Location;
109
import org.dimdev.ddutils.TeleportUtils;
1110
import net.minecraft.client.util.ITooltipFlag;

src/main/java/org/dimdev/dimdoors/shared/items/ModItems.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class ModItems {
5353
public static final ItemDimensionalTrapdoorWood WOOD_DIMENSIONAL_TRAPDOOR = new ItemDimensionalTrapdoorWood();
5454

5555
// Records
56-
public static final ItemRecord CREEPY_RECORD = new ItemRecord("creepy", CREEPY);
56+
public static final ItemModRecord CREEPY_RECORD = new ItemModRecord("creepy", CREEPY);
5757

5858
@SubscribeEvent
5959
public static void registerItems(RegistryEvent.Register<Item> event) {

src/main/java/org/dimdev/dimdoors/shared/tileentities/TileEntityEntranceRift.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import net.minecraft.nbt.NBTTagCompound;
2323
import net.minecraft.util.EnumFacing;
2424
import org.dimdev.dimdoors.shared.blocks.BlockDimensionalDoor;
25-
import org.dimdev.dimdoors.shared.blocks.ModBlocks;
2625

2726
import java.util.Random;
2827

src/main/java/org/dimdev/vanillafix/mixins/MixinNetHandlerPlayServer.java

Lines changed: 228 additions & 106 deletions
Large diffs are not rendered by default.

src/main/resources/assets/dimdoors/lang/en_US.lang

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ dimdoors.general.depthSpreadFactor=Depth Spread Factor
143143
dimdoors.general.depthSpreadFactor.tooltip=The scale of the dispersion when escaping from a pocket or limbo, in blocks/depth. It is important to remember that by default, limbo is treated as depth 50.
144144
dimdoors.general.riftCloseSpeed=Rift Close Speed
145145
dimdoors.general.riftCloseSpeed.tooltip=The speed at which rifts close when using the rift remover, in units of rift size per tick.
146-
dimdoors.general.closeDoorBehind.tooltip=When true, Dimensional Doors will automatically close when the player enters their portal.
147146
dimdoors.general.teleportOffset=Teleport Offset
148147
dimdoors.general.teleportOffset.tooltip=Distance in blocks to teleport the player in front of the dimensional door.
149148
dimdoors.general.riftBoundingBoxInCreative=Rift Bounding Box in Creative
@@ -201,4 +200,4 @@ dimdoors.graphics.showRiftCore.tooltip=Set this to true to always show rifts' co
201200
dimdoors.graphics.riftSize=Rift Size
202201
dimdoors.graphics.riftSize.tooltip=Multiplier affecting how large rifts should be rendered, 1 being the default size.
203202
dimdoors.graphics.riftJitter=Rift Jitter
204-
dimdoors.graphics.riftSize.tooltip=Multiplier affecting how much rifts should jitter, 1 being the default size.
203+
dimdoors.graphics.riftJitter.tooltip=Multiplier affecting how much rifts should jitter, 1 being the default size.

src/main/resources/assets/dimdoors/lang/fr_CA.lang

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ dimdoors.general=Options Généralles
109109
dimdoors.general.tooltip=Options de configuration généralles pour le mod
110110
dimdoors.general.baseDimensionID=Numéro de dimension de base
111111
dimdoors.general.baseDimensionID.tooltip=Le numéro de la première dimension de Portes dimensionelles. Les autres dimensions utiliseront des numéros consécutifs. Il est fortement recommendé de laisser cette option à sa valeur par défaut.
112-
dimdoors.general.useStatusBar.name=Messages dans la barre d'état
113-
dimdoors.general.useStatusBar.comment=Utiliser la barre d'état pour envoyer des messages plutôt que la boîte de discussion.
112+
dimdoors.general.useStatusBar=Messages dans la barre d'état
113+
dimdoors.general.useStatusBar.tooltip=Utiliser la barre d'état pour envoyer des messages plutôt que la boîte de discussion.
114114
dimdoors.pockets=Options sur les dimensions de poche
115115
dimdoors.pockets.tooltip=Options qui déterminent l'espacement et la grandeur maximalle des dimensions de poche dans la dimension qui les contient
116116
dimdoors.world=Options de génération de monde

0 commit comments

Comments
 (0)