@@ -11,7 +11,6 @@ public class SGMergeEvent extends Event {
11
11
Private because the event should be read-only - including both the gatePosition and address
12
12
in case changes are made to gate address generation
13
13
*/
14
- private final String worldName ;
15
14
private final BlockPos gatePosition ;
16
15
private final String address ;
17
16
private final boolean merged ;
@@ -20,24 +19,19 @@ public class SGMergeEvent extends Event {
20
19
/**
21
20
* Fired when a Stargate is merged or unmerged (the multiblock structure is completed or broken)
22
21
*/
23
- public SGMergeEvent (String worldName , String address , boolean merged , BlockPos gatePosition , World world ) {
24
- this .worldName = worldName ;
22
+ public SGMergeEvent (String address , boolean merged , BlockPos gatePosition , World world ) {
25
23
this .gatePosition = gatePosition ;
26
24
this .address = address ;
27
25
this .merged = merged ;
28
26
this .world = world ;
29
27
}
30
28
31
- public static SGMergeEvent fireEvent (String worldName , String address , boolean merged , BlockPos gatePosition , World world ) {
32
- SGMergeEvent event = new SGMergeEvent (worldName , address , merged , gatePosition , world );
29
+ public static SGMergeEvent fireEvent (String address , boolean merged , BlockPos gatePosition , World world ) {
30
+ SGMergeEvent event = new SGMergeEvent (address , merged , gatePosition , world );
33
31
MinecraftForge .EVENT_BUS .post (event );
34
32
return event ;
35
33
}
36
34
37
- public String getWorldName () {
38
- return worldName ;
39
- }
40
-
41
35
public BlockPos getGatePosition () {
42
36
return gatePosition ;
43
37
}
0 commit comments